Chromium Code Reviews| 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 <list> | |
| 9 | |
| 8 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 9 #include "base/id_map.h" | 11 #include "base/id_map.h" |
| 10 #include "base/process/kill.h" | 12 #include "base/process/kill.h" |
| 11 #include "base/process/process_handle.h" | 13 #include "base/process/process_handle.h" |
| 12 #include "base/supports_user_data.h" | 14 #include "base/supports_user_data.h" |
| 13 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 14 #include "ipc/ipc_channel_proxy.h" | 16 #include "ipc/ipc_channel_proxy.h" |
| 15 #include "ipc/ipc_sender.h" | 17 #include "ipc/ipc_sender.h" |
| 16 #include "ui/gfx/native_widget_types.h" | 18 #include "ui/gfx/native_widget_types.h" |
| 17 | 19 |
| 18 class GURL; | 20 class GURL; |
| 19 struct ViewMsg_SwapOut_Params; | 21 struct ViewMsg_SwapOut_Params; |
| 20 | 22 |
| 21 namespace base { | 23 namespace base { |
| 22 class TimeDelta; | 24 class TimeDelta; |
| 23 } | 25 } |
| 24 | 26 |
| 25 namespace gpu { | 27 namespace gpu { |
| 26 union ValueState; | 28 union ValueState; |
| 27 } | 29 } |
| 28 | 30 |
| 31 namespace media { | |
| 32 class AudioOutputController; | |
| 33 } | |
| 34 | |
| 29 namespace content { | 35 namespace content { |
| 30 class BrowserContext; | 36 class BrowserContext; |
| 31 class BrowserMessageFilter; | 37 class BrowserMessageFilter; |
| 32 class RenderProcessHostObserver; | 38 class RenderProcessHostObserver; |
| 33 class RenderWidgetHost; | 39 class RenderWidgetHost; |
| 34 class ServiceRegistry; | 40 class ServiceRegistry; |
| 35 class StoragePartition; | 41 class StoragePartition; |
| 36 struct GlobalRequestID; | 42 struct GlobalRequestID; |
| 37 | 43 |
| 38 // Interface that represents the browser side of the browser <-> renderer | 44 // Interface that represents the browser side of the browser <-> renderer |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 301 // Overrides the default heuristic for limiting the max renderer process | 307 // Overrides the default heuristic for limiting the max renderer process |
| 302 // count. This is useful for unit testing process limit behaviors. It is | 308 // count. This is useful for unit testing process limit behaviors. It is |
| 303 // also used to allow a command line parameter to configure the max number of | 309 // also used to allow a command line parameter to configure the max number of |
| 304 // renderer processes and should only be called once during startup. | 310 // renderer processes and should only be called once during startup. |
| 305 // A value of zero means to use the default heuristic. | 311 // A value of zero means to use the default heuristic. |
| 306 static void SetMaxRendererProcessCount(size_t count); | 312 static void SetMaxRendererProcessCount(size_t count); |
| 307 | 313 |
| 308 // Returns the current maximum number of renderer process hosts kept by the | 314 // Returns the current maximum number of renderer process hosts kept by the |
| 309 // content module. | 315 // content module. |
| 310 static size_t GetMaxRendererProcessCount(); | 316 static size_t GetMaxRendererProcessCount(); |
| 317 | |
| 318 // Retrieves the list of AudioOutputController objects associated | |
| 319 // with this object and passes it to the callback you specify, on | |
| 320 // the same thread on which you called the method. | |
| 321 typedef std::list<scoped_refptr<media::AudioOutputController>> | |
| 322 AudioOutputControllerList; | |
| 323 typedef base::Callback<void(const AudioOutputControllerList&)> | |
| 324 GetAudioOutputControllersCallback; | |
| 325 virtual void GetAudioOutputControllers( | |
| 326 const GetAudioOutputControllersCallback& callback) const = 0; | |
|
jam
2015/01/29 00:19:05
move this above the "// Static management function
| |
| 311 }; | 327 }; |
| 312 | 328 |
| 313 } // namespace content. | 329 } // namespace content. |
| 314 | 330 |
| 315 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 331 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |