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

Side by Side Diff: content/browser/renderer_host/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: Update comments. Created 9 years, 8 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_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
11 #include "base/id_map.h" 11 #include "base/id_map.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/process.h" 13 #include "base/process.h"
14 #include "base/process_util.h" 14 #include "base/process_util.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "chrome/common/visitedlink_common.h" 16 #include "chrome/common/visitedlink_common.h"
17 #include "ipc/ipc_sync_channel.h" 17 #include "ipc/ipc_sync_channel.h"
18 #include "ui/gfx/surface/transport_dib.h" 18 #include "ui/gfx/surface/transport_dib.h"
19 19
20 class Profile; 20 class Profile;
21 struct ViewMsg_ClosePage_Params; 21 struct ViewMsg_SwapOut_Params;
22 22
23 namespace base { 23 namespace base {
24 class SharedMemory; 24 class SharedMemory;
25 } 25 }
26 26
27 namespace net { 27 namespace net {
28 class URLRequestContextGetter; 28 class URLRequestContextGetter;
29 } 29 }
30 30
31 // Virtual interface that represents the browser side of the browser <-> 31 // Virtual interface that represents the browser side of the browser <->
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 virtual bool Init( 159 virtual bool Init(
160 bool is_accessibility_enabled, bool is_extensions_process) = 0; 160 bool is_accessibility_enabled, bool is_extensions_process) = 0;
161 161
162 // Gets the next available routing id. 162 // Gets the next available routing id.
163 virtual int GetNextRoutingID() = 0; 163 virtual int GetNextRoutingID() = 0;
164 164
165 // Called on the UI thread to cancel any outstanding resource requests for 165 // Called on the UI thread to cancel any outstanding resource requests for
166 // the specified render widget. 166 // the specified render widget.
167 virtual void CancelResourceRequests(int render_widget_id) = 0; 167 virtual void CancelResourceRequests(int render_widget_id) = 0;
168 168
169 // Called on the UI thread to simulate a ClosePage_ACK message to the 169 // Called on the UI thread to simulate a SwapOut_ACK message to the
170 // ResourceDispatcherHost. Necessary for a cross-site request, in the case 170 // ResourceDispatcherHost. Necessary for a cross-site request, in the case
171 // that the original RenderViewHost is not live and thus cannot run an 171 // that the original RenderViewHost is not live and thus cannot run an
172 // onunload handler. 172 // unload handler.
173 virtual void CrossSiteClosePageACK( 173 virtual void CrossSiteSwapOutACK(
174 const ViewMsg_ClosePage_Params& params) = 0; 174 const ViewMsg_SwapOut_Params& params) = 0;
175 175
176 // Called on the UI thread to wait for the next UpdateRect message for the 176 // Called on the UI thread to wait for the next UpdateRect message for the
177 // specified render widget. Returns true if successful, and the msg out- 177 // specified render widget. Returns true if successful, and the msg out-
178 // param will contain a copy of the received UpdateRect message. 178 // param will contain a copy of the received UpdateRect message.
179 virtual bool WaitForUpdateMsg(int render_widget_id, 179 virtual bool WaitForUpdateMsg(int render_widget_id,
180 const base::TimeDelta& max_delay, 180 const base::TimeDelta& max_delay,
181 IPC::Message* msg) = 0; 181 IPC::Message* msg) = 0;
182 182
183 // Called when a received message cannot be decoded. 183 // Called when a received message cannot be decoded.
184 virtual void ReceivedBadMessage() = 0; 184 virtual void ReceivedBadMessage() = 0;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // Factory object for RenderProcessHosts. Using this factory allows tests to 321 // Factory object for RenderProcessHosts. Using this factory allows tests to
322 // swap out a different one to use a TestRenderProcessHost. 322 // swap out a different one to use a TestRenderProcessHost.
323 class RenderProcessHostFactory { 323 class RenderProcessHostFactory {
324 public: 324 public:
325 virtual ~RenderProcessHostFactory() {} 325 virtual ~RenderProcessHostFactory() {}
326 virtual RenderProcessHost* CreateRenderProcessHost( 326 virtual RenderProcessHost* CreateRenderProcessHost(
327 Profile* profile) const = 0; 327 Profile* profile) const = 0;
328 }; 328 };
329 329
330 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ 330 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698