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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 #endif | 309 #endif |
310 | 310 |
311 // Returns true if this process currently has backgrounded priority. | 311 // Returns true if this process currently has backgrounded priority. |
312 virtual bool IsProcessBackgrounded() const = 0; | 312 virtual bool IsProcessBackgrounded() const = 0; |
313 | 313 |
314 // Called when the existence of the other renderer process which is connected | 314 // Called when the existence of the other renderer process which is connected |
315 // to the Worker in this renderer process has changed. | 315 // to the Worker in this renderer process has changed. |
316 virtual void IncrementWorkerRefCount() = 0; | 316 virtual void IncrementWorkerRefCount() = 0; |
317 virtual void DecrementWorkerRefCount() = 0; | 317 virtual void DecrementWorkerRefCount() = 0; |
318 | 318 |
| 319 virtual void Suspend() = 0; |
| 320 |
319 // Returns the current number of active views in this process. Excludes | 321 // Returns the current number of active views in this process. Excludes |
320 // any RenderViewHosts that are swapped out. | 322 // any RenderViewHosts that are swapped out. |
321 size_t GetActiveViewCount(); | 323 size_t GetActiveViewCount(); |
322 | 324 |
323 // Static management functions ----------------------------------------------- | 325 // Static management functions ----------------------------------------------- |
324 | 326 |
325 // Flag to run the renderer in process. This is primarily | 327 // Flag to run the renderer in process. This is primarily |
326 // for debugging purposes. When running "in process", the | 328 // for debugging purposes. When running "in process", the |
327 // browser maintains a single RenderProcessHost which communicates | 329 // browser maintains a single RenderProcessHost which communicates |
328 // to a RenderProcess which is instantiated in the same process | 330 // to a RenderProcess which is instantiated in the same process |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 static void SetMaxRendererProcessCount(size_t count); | 373 static void SetMaxRendererProcessCount(size_t count); |
372 | 374 |
373 // Returns the current maximum number of renderer process hosts kept by the | 375 // Returns the current maximum number of renderer process hosts kept by the |
374 // content module. | 376 // content module. |
375 static size_t GetMaxRendererProcessCount(); | 377 static size_t GetMaxRendererProcessCount(); |
376 }; | 378 }; |
377 | 379 |
378 } // namespace content. | 380 } // namespace content. |
379 | 381 |
380 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 382 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |