Chromium Code Reviews| Index: content/browser/renderer_host/render_process_host_impl.h |
| diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h |
| index 1ed902def6e0315455dff73b750aa155cb9f671f..a1b8bd7c65142d75f09213875bf522b056dd2d96 100644 |
| --- a/content/browser/renderer_host/render_process_host_impl.h |
| +++ b/content/browser/renderer_host/render_process_host_impl.h |
| @@ -121,7 +121,6 @@ class CONTENT_EXPORT RenderProcessHostImpl |
| void Cleanup() override; |
| void AddPendingView() override; |
| void RemovePendingView() override; |
| - void SetSuddenTerminationAllowed(bool enabled) override; |
| bool SuddenTerminationAllowed() const override; |
| IPC::ChannelProxy* GetChannel() override; |
| void AddFilter(BrowserMessageFilter* filter) override; |
| @@ -314,7 +313,7 @@ class CONTENT_EXPORT RenderProcessHostImpl |
| // Control message handlers. |
| void OnShutdownRequest(); |
| void OnDumpHandlesDone(); |
| - void SuddenTerminationChanged(bool enabled); |
| + void OnSuddenTerminationChanged(bool enabled); |
| void OnUserMetricsRecordAction(const std::string& action); |
| void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); |
| void OnCloseACK(int old_route_id); |
| @@ -415,12 +414,12 @@ class CONTENT_EXPORT RenderProcessHostImpl |
| // The observers watching our lifetime. |
| ObserverList<RenderProcessHostObserver> observers_; |
| - // True if the process can be shut down suddenly. If this is true, then we're |
| - // sure that all the RenderViews in the process can be shutdown suddenly. If |
| - // it's false, then specific RenderViews might still be allowed to be shutdown |
| - // suddenly by checking their SuddenTerminationAllowed() flag. This can occur |
| - // if one WebContents has an unload event listener but another WebContents in |
| - // the same process doesn't. |
| + // Whether the sudden termination of the process is allowed at a process |
| + // level. This is independent from the status of the various RenderFrames in |
|
Charlie Reis
2015/02/03 19:33:15
Please remember to update this comment to reflect
clamy
2015/02/04 13:16:19
Done.
|
| + // the process: even if this is false, some RenderFrames may be shutdown |
| + // suddenly if their SuddenTerminationAllowed() flag is true. Similarly, if it |
| + // is true, but some of the RenderFrames cannot be shutdown suddenly, then the |
| + // process cannot be suddenly terminated. |
| bool sudden_termination_allowed_; |
| // Set to true if we shouldn't send input events. We actually do the |