Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Side by Side Diff: android_webview/browser/aw_render_process_gone_delegate.h

Issue 2630473004: Implement Crash Handle API (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_RENDER_PROCESS_GONE_DELEGATE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_RENDER_PROCESS_GONE_DELEGATE_H_
7
8 namespace content {
9 class WebContents;
10 }
11
12 namespace android_webview {
13
14 // Delegate interface to handle the events that render process was gone.
15 //
16 // Two callbacks are called when a specific render process was gone.
Tobias Sargeant 2017/01/13 10:48:38 /a specific render process/the renderer process as
michaelbai 2017/01/13 21:01:38 Removed this
17 // OnRenderProcessGone is called as soon as render process's termiation is
Tobias Sargeant 2017/01/13 10:48:38 termination
michaelbai 2017/01/13 21:01:38 Done.
18 // detected;
19 // OnRenderProcessGoneWithDetail is invoked once we know if render process
20 // crashed or was killed.
21 class AwRenderProcessGoneDelegate {
22 public:
23 // Returns the AwRenderProcessGoneDelegate instance associated with
24 // the given |web_contents|.
25 static AwRenderProcessGoneDelegate* FromWebContents(
26 content::WebContents* web_contents);
27
28 virtual void OnRenderProcessGone(int child_process_id) = 0;
29
30 virtual bool OnRenderProcessGoneWithDetail(int child_process_id,
31 bool crashed) = 0;
32
33 protected:
34 AwRenderProcessGoneDelegate() {}
35 };
36
37 } // namespace android_webview
38
39 #endif // ANDROID_WEBVIEW_BROWSER_AW_RENDER_PROCESS_GONE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698