-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch implements basical feature for crash handle API. The feature like 'render processs keep crashing after crash is handled' hasn't implemented. BUG=666106 Review-Url: https://codereview.chromium.org/2630473004 Cr-Commit-Position: refs/heads/master@{#445256}
- Loading branch information
michaelbai
authored and
Commit bot
committed
Jan 21, 2017
1 parent
a7c18cd
commit 6e10ee5
Showing
7 changed files
with
152 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef ANDROID_WEBVIEW_BROWSER_AW_RENDER_PROCESS_GONE_DELEGATE_H_ | ||
#define ANDROID_WEBVIEW_BROWSER_AW_RENDER_PROCESS_GONE_DELEGATE_H_ | ||
|
||
namespace content { | ||
class WebContents; | ||
} | ||
|
||
namespace android_webview { | ||
|
||
// Delegate interface to handle the events that render process was gone. | ||
class AwRenderProcessGoneDelegate { | ||
public: | ||
// Returns the AwRenderProcessGoneDelegate instance associated with | ||
// the given |web_contents|. | ||
static AwRenderProcessGoneDelegate* FromWebContents( | ||
content::WebContents* web_contents); | ||
|
||
// Notify render process's termination is detected. | ||
virtual void OnRenderProcessGone(int child_process_id) = 0; | ||
|
||
// Notify if render process crashed or was killed, this callback is | ||
// invoked after OnRenderProcessGone() because the detail information | ||
// can't be obtained immediately when render process's termination is | ||
// detected. | ||
virtual bool OnRenderProcessGoneDetail(int child_process_id, | ||
bool crashed) = 0; | ||
|
||
protected: | ||
AwRenderProcessGoneDelegate() {} | ||
}; | ||
|
||
} // namespace android_webview | ||
|
||
#endif // ANDROID_WEBVIEW_BROWSER_AW_RENDER_PROCESS_GONE_DELEGATE_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters