OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
10 #include "base/process/kill.h" | 10 #include "base/process/kill.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 namespace base { | 22 namespace base { |
23 class TimeDelta; | 23 class TimeDelta; |
24 } | 24 } |
25 | 25 |
26 namespace content { | 26 namespace content { |
27 class BrowserContext; | 27 class BrowserContext; |
28 class BrowserMessageFilter; | 28 class BrowserMessageFilter; |
29 class RenderProcessHostObserver; | 29 class RenderProcessHostObserver; |
30 class RenderWidgetHost; | 30 class RenderWidgetHost; |
31 class StoragePartition; | 31 class StoragePartition; |
| 32 struct GlobalRequestID; |
32 | 33 |
33 typedef base::Thread* (*RendererMainThreadFactoryFunction)( | 34 typedef base::Thread* (*RendererMainThreadFactoryFunction)( |
34 const std::string& id); | 35 const std::string& id); |
35 | 36 |
36 // Interface that represents the browser side of the browser <-> renderer | 37 // Interface that represents the browser side of the browser <-> renderer |
37 // communication channel. There will generally be one RenderProcessHost per | 38 // communication channel. There will generally be one RenderProcessHost per |
38 // renderer process. | 39 // renderer process. |
39 class CONTENT_EXPORT RenderProcessHost : public IPC::Sender, | 40 class CONTENT_EXPORT RenderProcessHost : public IPC::Sender, |
40 public IPC::Listener, | 41 public IPC::Listener, |
41 public base::SupportsUserData { | 42 public base::SupportsUserData { |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 virtual void EnableAecDump(const base::FilePath& file) = 0; | 217 virtual void EnableAecDump(const base::FilePath& file) = 0; |
217 virtual void DisableAecDump() = 0; | 218 virtual void DisableAecDump() = 0; |
218 | 219 |
219 // When set, |callback| receives log messages regarding, for example. media | 220 // When set, |callback| receives log messages regarding, for example. media |
220 // devices (webcams, mics, etc) that were initially requested in the render | 221 // devices (webcams, mics, etc) that were initially requested in the render |
221 // process associated with this RenderProcessHost. | 222 // process associated with this RenderProcessHost. |
222 virtual void SetWebRtcLogMessageCallback( | 223 virtual void SetWebRtcLogMessageCallback( |
223 base::Callback<void(const std::string&)> callback) = 0; | 224 base::Callback<void(const std::string&)> callback) = 0; |
224 #endif | 225 #endif |
225 | 226 |
| 227 // Tells the ResourceDispatcherHost to resume a deferred navigation without |
| 228 // transferring it to a new renderer process. |
| 229 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; |
| 230 |
226 // Static management functions ----------------------------------------------- | 231 // Static management functions ----------------------------------------------- |
227 | 232 |
228 // Flag to run the renderer in process. This is primarily | 233 // Flag to run the renderer in process. This is primarily |
229 // for debugging purposes. When running "in process", the | 234 // for debugging purposes. When running "in process", the |
230 // browser maintains a single RenderProcessHost which communicates | 235 // browser maintains a single RenderProcessHost which communicates |
231 // to a RenderProcess which is instantiated in the same process | 236 // to a RenderProcess which is instantiated in the same process |
232 // with the Browser. All IPC between the Browser and the | 237 // with the Browser. All IPC between the Browser and the |
233 // Renderer is the same, it's just not crossing a process boundary. | 238 // Renderer is the same, it's just not crossing a process boundary. |
234 | 239 |
235 static bool run_renderer_in_process(); | 240 static bool run_renderer_in_process(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 // module. | 282 // module. |
278 static size_t GetMaxRendererProcessCount(); | 283 static size_t GetMaxRendererProcessCount(); |
279 | 284 |
280 static void RegisterRendererMainThreadFactory( | 285 static void RegisterRendererMainThreadFactory( |
281 RendererMainThreadFactoryFunction create); | 286 RendererMainThreadFactoryFunction create); |
282 }; | 287 }; |
283 | 288 |
284 } // namespace content. | 289 } // namespace content. |
285 | 290 |
286 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 291 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |