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

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: Merge with trunk. 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_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 "ipc/ipc_sync_channel.h" 16 #include "ipc/ipc_sync_channel.h"
17 #include "ui/gfx/surface/transport_dib.h" 17 #include "ui/gfx/surface/transport_dib.h"
18 18
19 class Profile; 19 class Profile;
20 struct ViewMsg_ClosePage_Params; 20 struct ViewMsg_SwapOut_Params;
21 21
22 namespace base { 22 namespace base {
23 class SharedMemory; 23 class SharedMemory;
24 } 24 }
25 25
26 namespace net { 26 namespace net {
27 class URLRequestContextGetter; 27 class URLRequestContextGetter;
28 } 28 }
29 29
30 // Virtual interface that represents the browser side of the browser <-> 30 // Virtual interface that represents the browser side of the browser <->
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // the process has been created, it should just call Init(). 168 // the process has been created, it should just call Init().
169 virtual bool Init(bool is_accessibility_enabled) = 0; 169 virtual bool Init(bool is_accessibility_enabled) = 0;
170 170
171 // Gets the next available routing id. 171 // Gets the next available routing id.
172 virtual int GetNextRoutingID() = 0; 172 virtual int GetNextRoutingID() = 0;
173 173
174 // Called on the UI thread to cancel any outstanding resource requests for 174 // Called on the UI thread to cancel any outstanding resource requests for
175 // the specified render widget. 175 // the specified render widget.
176 virtual void CancelResourceRequests(int render_widget_id) = 0; 176 virtual void CancelResourceRequests(int render_widget_id) = 0;
177 177
178 // Called on the UI thread to simulate a ClosePage_ACK message to the 178 // Called on the UI thread to simulate a SwapOut_ACK message to the
179 // ResourceDispatcherHost. Necessary for a cross-site request, in the case 179 // ResourceDispatcherHost. Necessary for a cross-site request, in the case
180 // that the original RenderViewHost is not live and thus cannot run an 180 // that the original RenderViewHost is not live and thus cannot run an
181 // onunload handler. 181 // unload handler.
182 virtual void CrossSiteClosePageACK( 182 virtual void CrossSiteSwapOutACK(
183 const ViewMsg_ClosePage_Params& params) = 0; 183 const ViewMsg_SwapOut_Params& params) = 0;
184 184
185 // Called on the UI thread to wait for the next UpdateRect message for the 185 // Called on the UI thread to wait for the next UpdateRect message for the
186 // specified render widget. Returns true if successful, and the msg out- 186 // specified render widget. Returns true if successful, and the msg out-
187 // param will contain a copy of the received UpdateRect message. 187 // param will contain a copy of the received UpdateRect message.
188 virtual bool WaitForUpdateMsg(int render_widget_id, 188 virtual bool WaitForUpdateMsg(int render_widget_id,
189 const base::TimeDelta& max_delay, 189 const base::TimeDelta& max_delay,
190 IPC::Message* msg) = 0; 190 IPC::Message* msg) = 0;
191 191
192 // Called when a received message cannot be decoded. 192 // Called when a received message cannot be decoded.
193 virtual void ReceivedBadMessage() = 0; 193 virtual void ReceivedBadMessage() = 0;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // Factory object for RenderProcessHosts. Using this factory allows tests to 326 // Factory object for RenderProcessHosts. Using this factory allows tests to
327 // swap out a different one to use a TestRenderProcessHost. 327 // swap out a different one to use a TestRenderProcessHost.
328 class RenderProcessHostFactory { 328 class RenderProcessHostFactory {
329 public: 329 public:
330 virtual ~RenderProcessHostFactory() {} 330 virtual ~RenderProcessHostFactory() {}
331 virtual RenderProcessHost* CreateRenderProcessHost( 331 virtual RenderProcessHost* CreateRenderProcessHost(
332 Profile* profile) const = 0; 332 Profile* profile) const = 0;
333 }; 333 };
334 334
335 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ 335 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/mock_render_process_host.cc ('k') | content/browser/renderer_host/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698