Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |