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

Side by Side Diff: content/browser/renderer_host/browser_render_process_host.h

Issue 6319001: Support window.opener after a process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add WasSwappedOut message for clean exit. Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 public NotificationObserver, 49 public NotificationObserver,
50 public ChildProcessLauncher::Client { 50 public ChildProcessLauncher::Client {
51 public: 51 public:
52 explicit BrowserRenderProcessHost(Profile* profile); 52 explicit BrowserRenderProcessHost(Profile* profile);
53 ~BrowserRenderProcessHost(); 53 ~BrowserRenderProcessHost();
54 54
55 // RenderProcessHost implementation (public portion). 55 // RenderProcessHost implementation (public portion).
56 virtual bool Init(bool is_accessibility_enabled, bool is_extensions_process); 56 virtual bool Init(bool is_accessibility_enabled, bool is_extensions_process);
57 virtual int GetNextRoutingID(); 57 virtual int GetNextRoutingID();
58 virtual void CancelResourceRequests(int render_widget_id); 58 virtual void CancelResourceRequests(int render_widget_id);
59 virtual void CrossSiteClosePageACK(const ViewMsg_ClosePage_Params& params); 59 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params);
60 virtual bool WaitForUpdateMsg(int render_widget_id, 60 virtual bool WaitForUpdateMsg(int render_widget_id,
61 const base::TimeDelta& max_delay, 61 const base::TimeDelta& max_delay,
62 IPC::Message* msg); 62 IPC::Message* msg);
63 virtual void ReceivedBadMessage(); 63 virtual void ReceivedBadMessage();
64 virtual void WidgetRestored(); 64 virtual void WidgetRestored();
65 virtual void WidgetHidden(); 65 virtual void WidgetHidden();
66 virtual int VisibleWidgetCount() const; 66 virtual int VisibleWidgetCount() const;
67 virtual bool FastShutdownIfPossible(); 67 virtual bool FastShutdownIfPossible();
68 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms); 68 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms);
69 virtual base::ProcessHandle GetHandle(); 69 virtual base::ProcessHandle GetHandle();
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // messages that are sent once the process handle is available. This is 181 // messages that are sent once the process handle is available. This is
182 // because the queued messages may have dependencies on the init messages. 182 // because the queued messages may have dependencies on the init messages.
183 std::queue<IPC::Message*> queued_messages_; 183 std::queue<IPC::Message*> queued_messages_;
184 184
185 base::ScopedCallbackFactory<BrowserRenderProcessHost> callback_factory_; 185 base::ScopedCallbackFactory<BrowserRenderProcessHost> callback_factory_;
186 186
187 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); 187 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost);
188 }; 188 };
189 189
190 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 190 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698