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 18 matching lines...) Expand all Loading... |
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 } | 36 } |
37 | 37 |
38 namespace content { | 38 namespace content { |
| 39 class AudioRendererHost; |
39 class BrowserContext; | 40 class BrowserContext; |
40 class BrowserMessageFilter; | 41 class BrowserMessageFilter; |
41 class RenderProcessHostObserver; | 42 class RenderProcessHostObserver; |
42 class RenderWidgetHost; | 43 class RenderWidgetHost; |
43 class ServiceRegistry; | 44 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 |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 virtual void IncrementWorkerRefCount() = 0; | 301 virtual void IncrementWorkerRefCount() = 0; |
301 virtual void DecrementWorkerRefCount() = 0; | 302 virtual void DecrementWorkerRefCount() = 0; |
302 | 303 |
303 // Purges and suspends the renderer process. | 304 // Purges and suspends the renderer process. |
304 virtual void PurgeAndSuspend() = 0; | 305 virtual void PurgeAndSuspend() = 0; |
305 | 306 |
306 // Returns the current number of active views in this process. Excludes | 307 // Returns the current number of active views in this process. Excludes |
307 // any RenderViewHosts that are swapped out. | 308 // any RenderViewHosts that are swapped out. |
308 size_t GetActiveViewCount(); | 309 size_t GetActiveViewCount(); |
309 | 310 |
| 311 virtual scoped_refptr<AudioRendererHost> audio_renderer_host() const = 0; |
| 312 |
310 // Static management functions ----------------------------------------------- | 313 // Static management functions ----------------------------------------------- |
311 | 314 |
312 // Flag to run the renderer in process. This is primarily | 315 // Flag to run the renderer in process. This is primarily |
313 // for debugging purposes. When running "in process", the | 316 // for debugging purposes. When running "in process", the |
314 // browser maintains a single RenderProcessHost which communicates | 317 // browser maintains a single RenderProcessHost which communicates |
315 // to a RenderProcess which is instantiated in the same process | 318 // to a RenderProcess which is instantiated in the same process |
316 // with the Browser. All IPC between the Browser and the | 319 // with the Browser. All IPC between the Browser and the |
317 // Renderer is the same, it's just not crossing a process boundary. | 320 // Renderer is the same, it's just not crossing a process boundary. |
318 | 321 |
319 static bool run_renderer_in_process(); | 322 static bool run_renderer_in_process(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 static void SetMaxRendererProcessCount(size_t count); | 361 static void SetMaxRendererProcessCount(size_t count); |
359 | 362 |
360 // Returns the current maximum number of renderer process hosts kept by the | 363 // Returns the current maximum number of renderer process hosts kept by the |
361 // content module. | 364 // content module. |
362 static size_t GetMaxRendererProcessCount(); | 365 static size_t GetMaxRendererProcessCount(); |
363 }; | 366 }; |
364 | 367 |
365 } // namespace content. | 368 } // namespace content. |
366 | 369 |
367 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 370 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |