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/offscreen_canvas_compositor_frame_sink_p
rovider_impl.h" | 26 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p
rovider_impl.h" |
27 #include "content/browser/webrtc/webrtc_eventlog_host.h" | 27 #include "content/browser/webrtc/webrtc_eventlog_host.h" |
| 28 #include "content/common/associated_interface_registry_impl.h" |
28 #include "content/common/associated_interfaces.mojom.h" | 29 #include "content/common/associated_interfaces.mojom.h" |
29 #include "content/common/content_export.h" | 30 #include "content/common/content_export.h" |
30 #include "content/common/indexed_db/indexed_db.mojom.h" | 31 #include "content/common/indexed_db/indexed_db.mojom.h" |
31 #include "content/common/renderer.mojom.h" | 32 #include "content/common/renderer.mojom.h" |
32 #include "content/public/browser/render_process_host.h" | 33 #include "content/public/browser/render_process_host.h" |
33 #include "content/public/common/service_manager_connection.h" | 34 #include "content/public/common/service_manager_connection.h" |
34 #include "ipc/ipc_channel_proxy.h" | 35 #include "ipc/ipc_channel_proxy.h" |
35 #include "ipc/ipc_platform_file.h" | 36 #include "ipc/ipc_platform_file.h" |
36 #include "media/media_features.h" | 37 #include "media/media_features.h" |
37 #include "mojo/edk/embedder/pending_process_connection.h" | 38 #include "mojo/edk/embedder/pending_process_connection.h" |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 bool is_worker_ref_count_disabled_; | 450 bool is_worker_ref_count_disabled_; |
450 | 451 |
451 // Whether this host is never suitable for reuse as determined in the | 452 // Whether this host is never suitable for reuse as determined in the |
452 // MayReuseHost() function. | 453 // MayReuseHost() function. |
453 bool is_never_suitable_for_reuse_ = false; | 454 bool is_never_suitable_for_reuse_ = false; |
454 | 455 |
455 // The registered IPC listener objects. When this list is empty, we should | 456 // The registered IPC listener objects. When this list is empty, we should |
456 // delete ourselves. | 457 // delete ourselves. |
457 IDMap<IPC::Listener*> listeners_; | 458 IDMap<IPC::Listener*> listeners_; |
458 | 459 |
| 460 std::unique_ptr<AssociatedInterfaceRegistryImpl> associated_registry_; |
| 461 |
459 mojo::AssociatedBinding<mojom::RouteProvider> route_provider_binding_; | 462 mojo::AssociatedBinding<mojom::RouteProvider> route_provider_binding_; |
460 mojo::AssociatedBindingSet<mojom::AssociatedInterfaceProvider, int32_t> | 463 mojo::AssociatedBindingSet<mojom::AssociatedInterfaceProvider, int32_t> |
461 associated_interface_provider_bindings_; | 464 associated_interface_provider_bindings_; |
462 | 465 |
463 // The count of currently visible widgets. Since the host can be a container | 466 // The count of currently visible widgets. Since the host can be a container |
464 // for multiple widgets, it uses this count to determine when it should be | 467 // for multiple widgets, it uses this count to determine when it should be |
465 // backgrounded. | 468 // backgrounded. |
466 int32_t visible_widgets_; | 469 int32_t visible_widgets_; |
467 | 470 |
468 // The set of widgets in this RenderProcessHostImpl. | 471 // The set of widgets in this RenderProcessHostImpl. |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 instance_weak_factory_; | 620 instance_weak_factory_; |
618 | 621 |
619 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 622 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
620 | 623 |
621 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 624 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
622 }; | 625 }; |
623 | 626 |
624 } // namespace content | 627 } // namespace content |
625 | 628 |
626 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 629 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |