use content::ChildProcessTerminationInfo
This commit is contained in:
parent
280421393e
commit
1c60f9e468
4 changed files with 18 additions and 14 deletions
|
@ -787,13 +787,15 @@ void App::BrowserChildProcessHostDisconnected(
|
||||||
ChildProcessDisconnected(base::GetProcId(data.handle));
|
ChildProcessDisconnected(base::GetProcId(data.handle));
|
||||||
}
|
}
|
||||||
|
|
||||||
void App::BrowserChildProcessCrashed(const content::ChildProcessData& data,
|
void App::BrowserChildProcessCrashed(
|
||||||
int exit_code) {
|
const content::ChildProcessData& data,
|
||||||
|
const content::ChildProcessTerminationInfo& info) {
|
||||||
ChildProcessDisconnected(base::GetProcId(data.handle));
|
ChildProcessDisconnected(base::GetProcId(data.handle));
|
||||||
}
|
}
|
||||||
|
|
||||||
void App::BrowserChildProcessKilled(const content::ChildProcessData& data,
|
void App::BrowserChildProcessKilled(
|
||||||
int exit_code) {
|
const content::ChildProcessData& data,
|
||||||
|
const content::ChildProcessTerminationInfo& info) {
|
||||||
ChildProcessDisconnected(base::GetProcId(data.handle));
|
ChildProcessDisconnected(base::GetProcId(data.handle));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -162,10 +162,12 @@ class App : public AtomBrowserClient::Delegate,
|
||||||
const content::ChildProcessData& data) override;
|
const content::ChildProcessData& data) override;
|
||||||
void BrowserChildProcessHostDisconnected(
|
void BrowserChildProcessHostDisconnected(
|
||||||
const content::ChildProcessData& data) override;
|
const content::ChildProcessData& data) override;
|
||||||
void BrowserChildProcessCrashed(const content::ChildProcessData& data,
|
void BrowserChildProcessCrashed(
|
||||||
int exit_code) override;
|
const content::ChildProcessData& data,
|
||||||
void BrowserChildProcessKilled(const content::ChildProcessData& data,
|
const content::ChildProcessTerminationInfo& info) override;
|
||||||
int exit_code) override;
|
void BrowserChildProcessKilled(
|
||||||
|
const content::ChildProcessData& data,
|
||||||
|
const content::ChildProcessTerminationInfo& info) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void SetAppPath(const base::FilePath& app_path);
|
void SetAppPath(const base::FilePath& app_path);
|
||||||
|
|
|
@ -557,9 +557,9 @@ void AtomBrowserClient::RenderProcessReady(content::RenderProcessHost* host) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AtomBrowserClient::RenderProcessExited(content::RenderProcessHost* host,
|
void AtomBrowserClient::RenderProcessExited(
|
||||||
base::TerminationStatus status,
|
content::RenderProcessHost* host,
|
||||||
int exit_code) {
|
const content::ChildProcessTerminationInfo& info) {
|
||||||
auto host_pid = render_process_host_pids_.find(host->GetID());
|
auto host_pid = render_process_host_pids_.find(host->GetID());
|
||||||
if (host_pid != render_process_host_pids_.end()) {
|
if (host_pid != render_process_host_pids_.end()) {
|
||||||
if (delegate_) {
|
if (delegate_) {
|
||||||
|
|
|
@ -123,9 +123,9 @@ class AtomBrowserClient : public brightray::BrowserClient,
|
||||||
// content::RenderProcessHostObserver:
|
// content::RenderProcessHostObserver:
|
||||||
void RenderProcessHostDestroyed(content::RenderProcessHost* host) override;
|
void RenderProcessHostDestroyed(content::RenderProcessHost* host) override;
|
||||||
void RenderProcessReady(content::RenderProcessHost* host) override;
|
void RenderProcessReady(content::RenderProcessHost* host) override;
|
||||||
void RenderProcessExited(content::RenderProcessHost* host,
|
void RenderProcessExited(
|
||||||
base::TerminationStatus status,
|
content::RenderProcessHost* host,
|
||||||
int exit_code) override;
|
const content::ChildProcessTerminationInfo& info) override;
|
||||||
bool HandleExternalProtocol(
|
bool HandleExternalProtocol(
|
||||||
const GURL& url,
|
const GURL& url,
|
||||||
content::ResourceRequestInfo::WebContentsGetter web_contents_getter,
|
content::ResourceRequestInfo::WebContentsGetter web_contents_getter,
|
||||||
|
|
Loading…
Reference in a new issue