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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 virtual void PurgeAndSuspend() = 0; | 341 virtual void PurgeAndSuspend() = 0; |
342 | 342 |
343 // Resumes the renderer process. | 343 // Resumes the renderer process. |
344 virtual void Resume() = 0; | 344 virtual void Resume() = 0; |
345 | 345 |
346 // Acquires the |mojom::Renderer| interface to the render process. This is for | 346 // Acquires the |mojom::Renderer| interface to the render process. This is for |
347 // internal use only, and is only exposed here to support | 347 // internal use only, and is only exposed here to support |
348 // MockRenderProcessHost usage in tests. | 348 // MockRenderProcessHost usage in tests. |
349 virtual mojom::Renderer* GetRendererInterface() = 0; | 349 virtual mojom::Renderer* GetRendererInterface() = 0; |
350 | 350 |
| 351 // Whether this process is locked out from ever being reused for sites other |
| 352 // than the ones it currently has. |
| 353 virtual void SetIsNeverSuitableForReuse() = 0; |
| 354 virtual bool MayReuseHost() = 0; |
| 355 |
351 // Returns the current number of active views in this process. Excludes | 356 // Returns the current number of active views in this process. Excludes |
352 // any RenderViewHosts that are swapped out. | 357 // any RenderViewHosts that are swapped out. |
353 size_t GetActiveViewCount(); | 358 size_t GetActiveViewCount(); |
354 | 359 |
355 // Static management functions ----------------------------------------------- | 360 // Static management functions ----------------------------------------------- |
356 | 361 |
357 // Flag to run the renderer in process. This is primarily | 362 // Flag to run the renderer in process. This is primarily |
358 // for debugging purposes. When running "in process", the | 363 // for debugging purposes. When running "in process", the |
359 // browser maintains a single RenderProcessHost which communicates | 364 // browser maintains a single RenderProcessHost which communicates |
360 // to a RenderProcess which is instantiated in the same process | 365 // to a RenderProcess which is instantiated in the same process |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 static void SetMaxRendererProcessCount(size_t count); | 408 static void SetMaxRendererProcessCount(size_t count); |
404 | 409 |
405 // Returns the current maximum number of renderer process hosts kept by the | 410 // Returns the current maximum number of renderer process hosts kept by the |
406 // content module. | 411 // content module. |
407 static size_t GetMaxRendererProcessCount(); | 412 static size_t GetMaxRendererProcessCount(); |
408 }; | 413 }; |
409 | 414 |
410 } // namespace content. | 415 } // namespace content. |
411 | 416 |
412 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 417 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |