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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 class TimeDelta; | 26 class TimeDelta; |
27 } | 27 } |
28 | 28 |
29 namespace media { | 29 namespace media { |
30 class AudioOutputController; | 30 class AudioOutputController; |
31 class MediaKeys; | 31 class MediaKeys; |
32 } | 32 } |
33 | 33 |
34 namespace shell { | 34 namespace shell { |
35 class Connection; | 35 class Connection; |
| 36 class InterfaceProvider; |
| 37 class InterfaceRegistry; |
36 } | 38 } |
37 | 39 |
38 namespace content { | 40 namespace content { |
39 class BrowserContext; | 41 class BrowserContext; |
40 class BrowserMessageFilter; | 42 class BrowserMessageFilter; |
41 class RenderProcessHostObserver; | 43 class RenderProcessHostObserver; |
42 class RenderWidgetHost; | 44 class RenderWidgetHost; |
43 class ServiceRegistry; | |
44 class StoragePartition; | 45 class StoragePartition; |
45 struct GlobalRequestID; | 46 struct GlobalRequestID; |
46 | 47 |
47 // Interface that represents the browser side of the browser <-> renderer | 48 // Interface that represents the browser side of the browser <-> renderer |
48 // communication channel. There will generally be one RenderProcessHost per | 49 // communication channel. There will generally be one RenderProcessHost per |
49 // renderer process. | 50 // renderer process. |
50 class CONTENT_EXPORT RenderProcessHost : public IPC::Sender, | 51 class CONTENT_EXPORT RenderProcessHost : public IPC::Sender, |
51 public IPC::Listener, | 52 public IPC::Listener, |
52 public base::SupportsUserData { | 53 public base::SupportsUserData { |
53 public: | 54 public: |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 #endif | 248 #endif |
248 | 249 |
249 // Tells the ResourceDispatcherHost to resume a deferred navigation without | 250 // Tells the ResourceDispatcherHost to resume a deferred navigation without |
250 // transferring it to a new renderer process. | 251 // transferring it to a new renderer process. |
251 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; | 252 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; |
252 | 253 |
253 // Notifies the renderer that the timezone configuration of the system might | 254 // Notifies the renderer that the timezone configuration of the system might |
254 // have changed. | 255 // have changed. |
255 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0; | 256 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0; |
256 | 257 |
257 // Returns the ServiceRegistry for this process. | 258 // Returns the shell::InterfaceRegistry the browser process uses to expose |
258 virtual ServiceRegistry* GetServiceRegistry() = 0; | 259 // interfaces to the renderer. |
| 260 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; |
| 261 |
| 262 // Returns the shell::InterfaceProvider the browser process can use to bind |
| 263 // interfaces exposed to it from the renderer. |
| 264 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; |
259 | 265 |
260 // Returns the shell connection for this process. | 266 // Returns the shell connection for this process. |
261 virtual shell::Connection* GetChildConnection() = 0; | 267 virtual shell::Connection* GetChildConnection() = 0; |
262 | 268 |
263 // Extracts any persistent-memory-allocator used for renderer metrics. | 269 // Extracts any persistent-memory-allocator used for renderer metrics. |
264 // Ownership is passed to the caller. To support sharing of histogram data | 270 // Ownership is passed to the caller. To support sharing of histogram data |
265 // between the Renderer and the Browser, the allocator is created when the | 271 // between the Renderer and the Browser, the allocator is created when the |
266 // process is created and later retrieved by the SubprocessMetricsProvider | 272 // process is created and later retrieved by the SubprocessMetricsProvider |
267 // for management. | 273 // for management. |
268 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> | 274 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 static void SetMaxRendererProcessCount(size_t count); | 364 static void SetMaxRendererProcessCount(size_t count); |
359 | 365 |
360 // Returns the current maximum number of renderer process hosts kept by the | 366 // Returns the current maximum number of renderer process hosts kept by the |
361 // content module. | 367 // content module. |
362 static size_t GetMaxRendererProcessCount(); | 368 static size_t GetMaxRendererProcessCount(); |
363 }; | 369 }; |
364 | 370 |
365 } // namespace content. | 371 } // namespace content. |
366 | 372 |
367 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 373 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |