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 11 matching lines...) Expand all Loading... |
22 #include "media/media_features.h" | 22 #include "media/media_features.h" |
23 #include "ui/gfx/native_widget_types.h" | 23 #include "ui/gfx/native_widget_types.h" |
24 | 24 |
25 class GURL; | 25 class GURL; |
26 | 26 |
27 namespace base { | 27 namespace base { |
28 class SharedPersistentMemoryAllocator; | 28 class SharedPersistentMemoryAllocator; |
29 class TimeDelta; | 29 class TimeDelta; |
30 } | 30 } |
31 | 31 |
| 32 namespace resource_coordinator { |
| 33 class ResourceCoordinatorInterface; |
| 34 } |
| 35 |
32 namespace service_manager { | 36 namespace service_manager { |
33 class Identity; | 37 class Identity; |
34 } | 38 } |
35 | 39 |
36 namespace content { | 40 namespace content { |
37 class BrowserContext; | 41 class BrowserContext; |
38 class BrowserMessageFilter; | 42 class BrowserMessageFilter; |
39 class RenderProcessHostObserver; | 43 class RenderProcessHostObserver; |
40 class RenderWidgetHost; | 44 class RenderWidgetHost; |
41 class StoragePartition; | 45 class StoragePartition; |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 virtual void PurgeAndSuspend() = 0; | 344 virtual void PurgeAndSuspend() = 0; |
341 | 345 |
342 // Resumes the renderer process. | 346 // Resumes the renderer process. |
343 virtual void Resume() = 0; | 347 virtual void Resume() = 0; |
344 | 348 |
345 // Acquires the |mojom::Renderer| interface to the render process. This is for | 349 // Acquires the |mojom::Renderer| interface to the render process. This is for |
346 // internal use only, and is only exposed here to support | 350 // internal use only, and is only exposed here to support |
347 // MockRenderProcessHost usage in tests. | 351 // MockRenderProcessHost usage in tests. |
348 virtual mojom::Renderer* GetRendererInterface() = 0; | 352 virtual mojom::Renderer* GetRendererInterface() = 0; |
349 | 353 |
| 354 // Acquires the interface to the Resource Coordinator for this process. |
| 355 virtual resource_coordinator::ResourceCoordinatorInterface* |
| 356 GetProcessResourceCoordinator() = 0; |
| 357 |
350 // Whether this process is locked out from ever being reused for sites other | 358 // Whether this process is locked out from ever being reused for sites other |
351 // than the ones it currently has. | 359 // than the ones it currently has. |
352 virtual void SetIsNeverSuitableForReuse() = 0; | 360 virtual void SetIsNeverSuitableForReuse() = 0; |
353 virtual bool MayReuseHost() = 0; | 361 virtual bool MayReuseHost() = 0; |
354 | 362 |
355 // Returns the current number of active views in this process. Excludes | 363 // Returns the current number of active views in this process. Excludes |
356 // any RenderViewHosts that are swapped out. | 364 // any RenderViewHosts that are swapped out. |
357 size_t GetActiveViewCount(); | 365 size_t GetActiveViewCount(); |
358 | 366 |
359 // Posts |task|, if this RenderProcessHost is ready or when it becomes ready | 367 // Posts |task|, if this RenderProcessHost is ready or when it becomes ready |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 static void SetMaxRendererProcessCount(size_t count); | 422 static void SetMaxRendererProcessCount(size_t count); |
415 | 423 |
416 // Returns the current maximum number of renderer process hosts kept by the | 424 // Returns the current maximum number of renderer process hosts kept by the |
417 // content module. | 425 // content module. |
418 static size_t GetMaxRendererProcessCount(); | 426 static size_t GetMaxRendererProcessCount(); |
419 }; | 427 }; |
420 | 428 |
421 } // namespace content. | 429 } // namespace content. |
422 | 430 |
423 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 431 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |