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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 bool is_worker_ref_count_disabled_; | 454 bool is_worker_ref_count_disabled_; |
454 | 455 |
455 // Whether this host is never suitable for reuse as determined in the | 456 // Whether this host is never suitable for reuse as determined in the |
456 // MayReuseHost() function. | 457 // MayReuseHost() function. |
457 bool is_never_suitable_for_reuse_ = false; | 458 bool is_never_suitable_for_reuse_ = false; |
458 | 459 |
459 // The registered IPC listener objects. When this list is empty, we should | 460 // The registered IPC listener objects. When this list is empty, we should |
460 // delete ourselves. | 461 // delete ourselves. |
461 IDMap<IPC::Listener*> listeners_; | 462 IDMap<IPC::Listener*> listeners_; |
462 | 463 |
| 464 std::unique_ptr<AssociatedInterfaceRegistryImpl> associated_registry_; |
| 465 |
463 mojo::AssociatedBinding<mojom::RouteProvider> route_provider_binding_; | 466 mojo::AssociatedBinding<mojom::RouteProvider> route_provider_binding_; |
464 mojo::AssociatedBindingSet<mojom::AssociatedInterfaceProvider, int32_t> | 467 mojo::AssociatedBindingSet<mojom::AssociatedInterfaceProvider, int32_t> |
465 associated_interface_provider_bindings_; | 468 associated_interface_provider_bindings_; |
466 | 469 |
467 // The count of currently visible widgets. Since the host can be a container | 470 // The count of currently visible widgets. Since the host can be a container |
468 // for multiple widgets, it uses this count to determine when it should be | 471 // for multiple widgets, it uses this count to determine when it should be |
469 // backgrounded. | 472 // backgrounded. |
470 int32_t visible_widgets_; | 473 int32_t visible_widgets_; |
471 | 474 |
472 // The set of widgets in this RenderProcessHostImpl. | 475 // The set of widgets in this RenderProcessHostImpl. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 FrameSinkProviderImpl frame_sink_provider_; | 626 FrameSinkProviderImpl frame_sink_provider_; |
624 | 627 |
625 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 628 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
626 | 629 |
627 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 630 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
628 }; | 631 }; |
629 | 632 |
630 } // namespace content | 633 } // namespace content |
631 | 634 |
632 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 635 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |