| 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 virtual void PurgeAndSuspend() = 0; | 327 virtual void PurgeAndSuspend() = 0; |
| 328 | 328 |
| 329 // Resumes the renderer process. | 329 // Resumes the renderer process. |
| 330 virtual void Resume() = 0; | 330 virtual void Resume() = 0; |
| 331 | 331 |
| 332 // Acquires the |mojom::Renderer| interface to the render process. This is for | 332 // Acquires the |mojom::Renderer| interface to the render process. This is for |
| 333 // internal use only, and is only exposed here to support | 333 // internal use only, and is only exposed here to support |
| 334 // MockRenderProcessHost usage in tests. | 334 // MockRenderProcessHost usage in tests. |
| 335 virtual mojom::Renderer* GetRendererInterface() = 0; | 335 virtual mojom::Renderer* GetRendererInterface() = 0; |
| 336 | 336 |
| 337 // Returns the ResourceMessageFilter of the process. This is used to send |
| 338 // service worker navigation requests when PlzNavigate is enabled. Only |
| 339 // exposed here to support MockRenderProcessHost usage in tests. |
| 340 virtual BrowserMessageFilter* GetResourceMessageFilter() = 0; |
| 341 |
| 337 // Returns the current number of active views in this process. Excludes | 342 // Returns the current number of active views in this process. Excludes |
| 338 // any RenderViewHosts that are swapped out. | 343 // any RenderViewHosts that are swapped out. |
| 339 size_t GetActiveViewCount(); | 344 size_t GetActiveViewCount(); |
| 340 | 345 |
| 341 // Static management functions ----------------------------------------------- | 346 // Static management functions ----------------------------------------------- |
| 342 | 347 |
| 343 // Flag to run the renderer in process. This is primarily | 348 // Flag to run the renderer in process. This is primarily |
| 344 // for debugging purposes. When running "in process", the | 349 // for debugging purposes. When running "in process", the |
| 345 // browser maintains a single RenderProcessHost which communicates | 350 // browser maintains a single RenderProcessHost which communicates |
| 346 // to a RenderProcess which is instantiated in the same process | 351 // to a RenderProcess which is instantiated in the same process |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 static void SetMaxRendererProcessCount(size_t count); | 394 static void SetMaxRendererProcessCount(size_t count); |
| 390 | 395 |
| 391 // Returns the current maximum number of renderer process hosts kept by the | 396 // Returns the current maximum number of renderer process hosts kept by the |
| 392 // content module. | 397 // content module. |
| 393 static size_t GetMaxRendererProcessCount(); | 398 static size_t GetMaxRendererProcessCount(); |
| 394 }; | 399 }; |
| 395 | 400 |
| 396 } // namespace content. | 401 } // namespace content. |
| 397 | 402 |
| 398 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 403 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |