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 service_manager { |
| 33 class Identity; |
| 34 } |
| 35 |
32 namespace content { | 36 namespace content { |
33 class BrowserContext; | 37 class BrowserContext; |
34 class BrowserMessageFilter; | 38 class BrowserMessageFilter; |
35 class RenderProcessHostObserver; | 39 class RenderProcessHostObserver; |
36 class RenderWidgetHost; | 40 class RenderWidgetHost; |
37 class StoragePartition; | 41 class StoragePartition; |
38 struct GlobalRequestID; | 42 struct GlobalRequestID; |
39 | 43 |
40 namespace mojom { | 44 namespace mojom { |
41 class Renderer; | 45 class Renderer; |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 #endif | 276 #endif |
273 | 277 |
274 // Tells the ResourceDispatcherHost to resume a deferred navigation without | 278 // Tells the ResourceDispatcherHost to resume a deferred navigation without |
275 // transferring it to a new renderer process. | 279 // transferring it to a new renderer process. |
276 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; | 280 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; |
277 | 281 |
278 // Binds interfaces exposed to the browser process from the renderer. | 282 // Binds interfaces exposed to the browser process from the renderer. |
279 virtual void BindInterface(const std::string& interface_name, | 283 virtual void BindInterface(const std::string& interface_name, |
280 mojo::ScopedMessagePipeHandle interface_pipe) = 0; | 284 mojo::ScopedMessagePipeHandle interface_pipe) = 0; |
281 | 285 |
| 286 virtual const service_manager::Identity& GetChildIdentity() const = 0; |
| 287 |
282 // Extracts any persistent-memory-allocator used for renderer metrics. | 288 // Extracts any persistent-memory-allocator used for renderer metrics. |
283 // Ownership is passed to the caller. To support sharing of histogram data | 289 // Ownership is passed to the caller. To support sharing of histogram data |
284 // between the Renderer and the Browser, the allocator is created when the | 290 // between the Renderer and the Browser, the allocator is created when the |
285 // process is created and later retrieved by the SubprocessMetricsProvider | 291 // process is created and later retrieved by the SubprocessMetricsProvider |
286 // for management. | 292 // for management. |
287 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> | 293 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> |
288 TakeMetricsAllocator() = 0; | 294 TakeMetricsAllocator() = 0; |
289 | 295 |
290 // PlzNavigate | 296 // PlzNavigate |
291 // Returns the time the first call to Init completed successfully (after a new | 297 // Returns the time the first call to Init completed successfully (after a new |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 static void SetMaxRendererProcessCount(size_t count); | 407 static void SetMaxRendererProcessCount(size_t count); |
402 | 408 |
403 // Returns the current maximum number of renderer process hosts kept by the | 409 // Returns the current maximum number of renderer process hosts kept by the |
404 // content module. | 410 // content module. |
405 static size_t GetMaxRendererProcessCount(); | 411 static size_t GetMaxRendererProcessCount(); |
406 }; | 412 }; |
407 | 413 |
408 } // namespace content. | 414 } // namespace content. |
409 | 415 |
410 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 416 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |