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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 298 AudioOutputControllerList; | 298 AudioOutputControllerList; |
| 299 typedef base::Callback<void(const AudioOutputControllerList&)> | 299 typedef base::Callback<void(const AudioOutputControllerList&)> |
| 300 GetAudioOutputControllersCallback; | 300 GetAudioOutputControllersCallback; |
| 301 virtual void GetAudioOutputControllers( | 301 virtual void GetAudioOutputControllers( |
| 302 const GetAudioOutputControllersCallback& callback) const = 0; | 302 const GetAudioOutputControllersCallback& callback) const = 0; |
| 303 | 303 |
| 304 // Returns true if this process currently has backgrounded priority. | 304 // Returns true if this process currently has backgrounded priority. |
| 305 virtual bool IsProcessBackgrounded() const = 0; | 305 virtual bool IsProcessBackgrounded() const = 0; |
| 306 | 306 |
| 307 // Called when the existence of the other renderer process which is connected | 307 // Called when the existence of the other renderer process which is connected |
| 308 // to the Worker in this renderer process has changed. | 308 // to the Worker in this renderer process has changed. |
|
falken
2016/12/13 06:32:29
This comment only refers to Increment/DecrementSha
shimazu
2016/12/13 07:24:50
Done.
| |
| 309 virtual size_t GetWorkerRefCount() const = 0; | |
| 309 virtual void IncrementServiceWorkerRefCount() = 0; | 310 virtual void IncrementServiceWorkerRefCount() = 0; |
| 310 virtual void DecrementServiceWorkerRefCount() = 0; | 311 virtual void DecrementServiceWorkerRefCount() = 0; |
| 311 virtual void IncrementSharedWorkerRefCount() = 0; | 312 virtual void IncrementSharedWorkerRefCount() = 0; |
| 312 virtual void DecrementSharedWorkerRefCount() = 0; | 313 virtual void DecrementSharedWorkerRefCount() = 0; |
| 313 | 314 |
| 314 // Sets worker ref counts to zero. Called when the browser context will be | 315 // Sets worker ref counts to zero. Called when the browser context will be |
| 315 // destroyed so this RenderProcessHost can immediately die. | 316 // destroyed so this RenderProcessHost can immediately die. |
| 316 // | 317 // |
| 317 // After this is called, the Increment/DecrementWorkerRefCount functions must | 318 // After this is called, the Increment/DecrementWorkerRefCount functions must |
| 318 // not be called. | 319 // not be called. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 387 static void SetMaxRendererProcessCount(size_t count); | 388 static void SetMaxRendererProcessCount(size_t count); |
| 388 | 389 |
| 389 // Returns the current maximum number of renderer process hosts kept by the | 390 // Returns the current maximum number of renderer process hosts kept by the |
| 390 // content module. | 391 // content module. |
| 391 static size_t GetMaxRendererProcessCount(); | 392 static size_t GetMaxRendererProcessCount(); |
| 392 }; | 393 }; |
| 393 | 394 |
| 394 } // namespace content. | 395 } // namespace content. |
| 395 | 396 |
| 396 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 397 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |