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_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <queue> | 13 #include <queue> |
14 #include <set> | 14 #include <set> |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
19 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
20 #include "base/process/process.h" | 20 #include "base/process/process.h" |
21 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
22 #include "base/synchronization/waitable_event.h" | 22 #include "base/synchronization/waitable_event.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "content/browser/child_process_launcher.h" | 24 #include "content/browser/child_process_launcher.h" |
25 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 25 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
26 #include "content/browser/renderer_host/frame_sink_provider_impl.h" | 26 #include "content/browser/renderer_host/frame_sink_provider_impl.h" |
27 #include "content/browser/renderer_host/offscreen_canvas_provider_impl.h" | 27 #include "content/browser/renderer_host/offscreen_canvas_provider_impl.h" |
28 #include "content/browser/webrtc/webrtc_eventlog_host.h" | 28 #include "content/browser/webrtc/webrtc_eventlog_host.h" |
29 #include "content/common/associated_interface_registry_impl.h" | |
29 #include "content/common/associated_interfaces.mojom.h" | 30 #include "content/common/associated_interfaces.mojom.h" |
30 #include "content/common/content_export.h" | 31 #include "content/common/content_export.h" |
31 #include "content/common/indexed_db/indexed_db.mojom.h" | 32 #include "content/common/indexed_db/indexed_db.mojom.h" |
32 #include "content/common/renderer.mojom.h" | 33 #include "content/common/renderer.mojom.h" |
33 #include "content/public/browser/render_process_host.h" | 34 #include "content/public/browser/render_process_host.h" |
34 #include "content/public/common/service_manager_connection.h" | 35 #include "content/public/common/service_manager_connection.h" |
35 #include "ipc/ipc_channel_proxy.h" | 36 #include "ipc/ipc_channel_proxy.h" |
36 #include "ipc/ipc_platform_file.h" | 37 #include "ipc/ipc_platform_file.h" |
37 #include "media/media_features.h" | 38 #include "media/media_features.h" |
38 #include "mojo/edk/embedder/pending_process_connection.h" | 39 #include "mojo/edk/embedder/pending_process_connection.h" |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
336 // mojom::RouteProvider: | 337 // mojom::RouteProvider: |
337 void GetRoute( | 338 void GetRoute( |
338 int32_t routing_id, | 339 int32_t routing_id, |
339 mojom::AssociatedInterfaceProviderAssociatedRequest request) override; | 340 mojom::AssociatedInterfaceProviderAssociatedRequest request) override; |
340 | 341 |
341 // mojom::AssociatedInterfaceProvider: | 342 // mojom::AssociatedInterfaceProvider: |
342 void GetAssociatedInterface( | 343 void GetAssociatedInterface( |
343 const std::string& name, | 344 const std::string& name, |
344 mojom::AssociatedInterfaceAssociatedRequest request) override; | 345 mojom::AssociatedInterfaceAssociatedRequest request) override; |
345 | 346 |
347 void BindRouteProvider(mojom::RouteProviderAssociatedRequest request); | |
348 | |
346 void CreateMusGpuRequest(ui::mojom::GpuRequest request); | 349 void CreateMusGpuRequest(ui::mojom::GpuRequest request); |
347 void CreateOffscreenCanvasProvider( | 350 void CreateOffscreenCanvasProvider( |
348 blink::mojom::OffscreenCanvasProviderRequest request); | 351 blink::mojom::OffscreenCanvasProviderRequest request); |
349 void BindFrameSinkProvider(mojom::FrameSinkProviderRequest request); | 352 void BindFrameSinkProvider(mojom::FrameSinkProviderRequest request); |
350 void CreateStoragePartitionService( | 353 void CreateStoragePartitionService( |
351 mojo::InterfaceRequest<mojom::StoragePartitionService> request); | 354 mojo::InterfaceRequest<mojom::StoragePartitionService> request); |
352 | 355 |
353 // Control message handlers. | 356 // Control message handlers. |
354 void OnShutdownRequest(); | 357 void OnShutdownRequest(); |
355 void SuddenTerminationChanged(bool enabled); | 358 void SuddenTerminationChanged(bool enabled); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
449 // longer be modified. | 452 // longer be modified. |
450 bool is_worker_ref_count_disabled_; | 453 bool is_worker_ref_count_disabled_; |
451 | 454 |
452 // Whether this host is never suitable for reuse as determined in the | 455 // Whether this host is never suitable for reuse as determined in the |
453 // MayReuseHost() function. | 456 // MayReuseHost() function. |
454 bool is_never_suitable_for_reuse_ = false; | 457 bool is_never_suitable_for_reuse_ = false; |
455 | 458 |
456 // The registered IPC listener objects. When this list is empty, we should | 459 // The registered IPC listener objects. When this list is empty, we should |
457 // delete ourselves. | 460 // delete ourselves. |
458 IDMap<IPC::Listener*> listeners_; | 461 IDMap<IPC::Listener*> listeners_; |
459 | 462 |
ncarter (slow)
2017/04/27 20:43:53
// Mojo interfaces provided to the child process a
nigeltao1
2017/04/28 00:33:25
Done.
| |
463 std::unique_ptr<AssociatedInterfaceRegistryImpl> associated_interfaces_; | |
464 | |
460 mojo::AssociatedBinding<mojom::RouteProvider> route_provider_binding_; | 465 mojo::AssociatedBinding<mojom::RouteProvider> route_provider_binding_; |
461 mojo::AssociatedBindingSet<mojom::AssociatedInterfaceProvider, int32_t> | 466 mojo::AssociatedBindingSet<mojom::AssociatedInterfaceProvider, int32_t> |
462 associated_interface_provider_bindings_; | 467 associated_interface_provider_bindings_; |
463 | 468 |
464 // The count of currently visible widgets. Since the host can be a container | 469 // The count of currently visible widgets. Since the host can be a container |
465 // for multiple widgets, it uses this count to determine when it should be | 470 // for multiple widgets, it uses this count to determine when it should be |
466 // backgrounded. | 471 // backgrounded. |
467 int32_t visible_widgets_; | 472 int32_t visible_widgets_; |
468 | 473 |
469 // The set of widgets in this RenderProcessHostImpl. | 474 // The set of widgets in this RenderProcessHostImpl. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
620 FrameSinkProviderImpl frame_sink_provider_; | 625 FrameSinkProviderImpl frame_sink_provider_; |
621 | 626 |
622 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 627 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
623 | 628 |
624 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 629 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
625 }; | 630 }; |
626 | 631 |
627 } // namespace content | 632 } // namespace content |
628 | 633 |
629 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 634 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |