| Index: content/renderer/render_view.h
|
| diff --git a/content/renderer/render_view.h b/content/renderer/render_view.h
|
| index b9d5143eee5599431936ddac906a933a01c28f09..73e52bfbfb7f2eff1c91062318bf1a0c03af68c2 100644
|
| --- a/content/renderer/render_view.h
|
| +++ b/content/renderer/render_view.h
|
| @@ -79,7 +79,7 @@ struct ContextMenuMediaParams;
|
| struct PP_Flash_NetAddress;
|
| struct ThumbnailScore;
|
| struct ViewHostMsg_RunFileChooser_Params;
|
| -struct ViewMsg_ClosePage_Params;
|
| +struct ViewMsg_SwapOut_Params;
|
| struct ViewMsg_Navigate_Params;
|
| struct ViewMsg_StopFinding_Params;
|
| struct WebApplicationInfo;
|
| @@ -251,6 +251,9 @@ class RenderView : public RenderWidget,
|
| void AddObserver(RenderViewObserver* observer);
|
| void RemoveObserver(RenderViewObserver* observer);
|
|
|
| + // Swap this RenderView back in if the tab navigates back to this process.
|
| + void SwapIn();
|
| +
|
| // Called from JavaScript window.external.AddSearchProvider() to add a
|
| // keyword for a provider described in the given OpenSearch document.
|
| void AddSearchProvider(const std::string& url,
|
| @@ -758,7 +761,7 @@ class RenderView : public RenderWidget,
|
| int message_id);
|
| void OnCancelDownload(int32 download_id);
|
| void OnClearFocusedNode();
|
| - void OnClosePage(const ViewMsg_ClosePage_Params& params);
|
| + void OnClosePage();
|
| #if defined(ENABLE_FLAPPER_HACKS)
|
| void OnConnectTcpACK(int request_id,
|
| IPC::PlatformFileForTransit socket_for_transit,
|
| @@ -861,6 +864,7 @@ class RenderView : public RenderWidget,
|
| void OnShouldClose();
|
| void OnStop();
|
| void OnStopFinding(const ViewMsg_StopFinding_Params& params);
|
| + void OnSwapOut(const ViewMsg_SwapOut_Params& params);
|
| void OnThemeChanged();
|
| void OnUndo();
|
| void OnUpdateBrowserWindowId(int window_id);
|
| @@ -1094,6 +1098,11 @@ class RenderView : public RenderWidget,
|
| // True if the RenderView is currently prerendering a page.
|
| bool is_prerendering_;
|
|
|
| + // Whether this RenderView is currently swapped out, such that the tab is
|
| + // being rendered by another process. If all RenderViews in a process are
|
| + // swapped out, the process can exit.
|
| + bool is_swapped_out_;
|
| +
|
| // Page IDs ------------------------------------------------------------------
|
| //
|
| // Page IDs allow the browser to identify pages in each renderer process for
|
|
|