Chromium Code Reviews| Index: content/browser/renderer_host/browser_render_process_host.h |
| diff --git a/content/browser/renderer_host/browser_render_process_host.h b/content/browser/renderer_host/browser_render_process_host.h |
| index d3eee336baa8ec0ee83e940973273aa2049c0a63..694469b8db754681d3867d8d4e670723bf194f01 100644 |
| --- a/content/browser/renderer_host/browser_render_process_host.h |
| +++ b/content/browser/renderer_host/browser_render_process_host.h |
| @@ -58,6 +58,9 @@ class BrowserRenderProcessHost : public RenderProcessHost, |
| virtual void WidgetRestored(); |
| virtual void WidgetHidden(); |
| virtual int VisibleWidgetCount() const; |
| + virtual void AddPendingView(); |
| + virtual void RemovePendingView(); |
| + virtual int PendingViewCount() const; |
|
jam
2011/05/06 17:45:11
I don't see this being used anywhere?
Charlie Reis
2011/05/10 00:57:03
Done.
|
| virtual bool FastShutdownIfPossible(); |
| virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms); |
| virtual base::ProcessHandle GetHandle(); |
| @@ -81,6 +84,7 @@ class BrowserRenderProcessHost : public RenderProcessHost, |
| void CreateMessageFilters(); |
| // Control message handlers. |
| + void OnShutdownRequest(); |
| void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats); |
| void SuddenTerminationChanged(bool enabled); |
| void OnUserMetricsRecordAction(const std::string& action); |
| @@ -103,6 +107,11 @@ class BrowserRenderProcessHost : public RenderProcessHost, |
| // backgrounded. |
| int32 visible_widgets_; |
| + // The count of currently swapped out but pending RenderViews. We have |
| + // started to swap these back in, so the renderer process should not exit if |
| + // this count is non-zero. |
| + int32 pending_views_; |
| + |
| // Does this process have backgrounded priority. |
| bool backgrounded_; |