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 <string> | 14 #include <string> |
15 | 15 |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
19 #include "base/process/process.h" | 19 #include "base/process/process.h" |
20 #include "base/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
21 #include "base/synchronization/waitable_event.h" | 21 #include "base/synchronization/waitable_event.h" |
22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
23 #include "content/browser/child_process_launcher.h" | 23 #include "content/browser/child_process_launcher.h" |
24 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 24 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
25 #include "content/browser/power_monitor_message_broadcaster.h" | 25 #include "content/browser/power_monitor_message_broadcaster.h" |
26 #include "content/browser/webrtc/webrtc_eventlog_host.h" | 26 #include "content/browser/webrtc/webrtc_eventlog_host.h" |
27 #include "content/common/associated_interfaces.mojom.h" | 27 #include "content/common/associated_interfaces.mojom.h" |
28 #include "content/common/content_export.h" | 28 #include "content/common/content_export.h" |
29 #include "content/common/renderer.mojom.h" | 29 #include "content/common/renderer.mojom.h" |
| 30 #include "content/common/service_worker/service_worker_types.h" |
30 #include "content/public/browser/render_process_host.h" | 31 #include "content/public/browser/render_process_host.h" |
31 #include "content/public/common/service_manager_connection.h" | 32 #include "content/public/common/service_manager_connection.h" |
32 #include "ipc/ipc_channel_proxy.h" | 33 #include "ipc/ipc_channel_proxy.h" |
33 #include "ipc/ipc_platform_file.h" | 34 #include "ipc/ipc_platform_file.h" |
34 #include "mojo/public/cpp/bindings/associated_binding.h" | 35 #include "mojo/public/cpp/bindings/associated_binding.h" |
35 #include "mojo/public/cpp/bindings/associated_binding_set.h" | 36 #include "mojo/public/cpp/bindings/associated_binding_set.h" |
36 #include "mojo/public/cpp/bindings/interface_ptr.h" | 37 #include "mojo/public/cpp/bindings/interface_ptr.h" |
37 #include "services/service_manager/public/cpp/interface_registry.h" | 38 #include "services/service_manager/public/cpp/interface_registry.h" |
38 #include "services/service_manager/public/interfaces/service.mojom.h" | 39 #include "services/service_manager/public/interfaces/service.mojom.h" |
39 #include "ui/gfx/gpu_memory_buffer.h" | 40 #include "ui/gfx/gpu_memory_buffer.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; | 175 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; |
175 bool IsProcessBackgrounded() const override; | 176 bool IsProcessBackgrounded() const override; |
176 void IncrementServiceWorkerRefCount() override; | 177 void IncrementServiceWorkerRefCount() override; |
177 void DecrementServiceWorkerRefCount() override; | 178 void DecrementServiceWorkerRefCount() override; |
178 void IncrementSharedWorkerRefCount() override; | 179 void IncrementSharedWorkerRefCount() override; |
179 void DecrementSharedWorkerRefCount() override; | 180 void DecrementSharedWorkerRefCount() override; |
180 void ForceReleaseWorkerRefCounts() override; | 181 void ForceReleaseWorkerRefCounts() override; |
181 bool IsWorkerRefCountDisabled() override; | 182 bool IsWorkerRefCountDisabled() override; |
182 void PurgeAndSuspend() override; | 183 void PurgeAndSuspend() override; |
183 mojom::Renderer* GetRendererInterface() override; | 184 mojom::Renderer* GetRendererInterface() override; |
| 185 MojoURLLoaderFactoryGetter CreateURLLoaderFactoryGetter() override; |
184 | 186 |
185 mojom::RouteProvider* GetRemoteRouteProvider(); | 187 mojom::RouteProvider* GetRemoteRouteProvider(); |
186 | 188 |
187 // IPC::Sender via RenderProcessHost. | 189 // IPC::Sender via RenderProcessHost. |
188 bool Send(IPC::Message* msg) override; | 190 bool Send(IPC::Message* msg) override; |
189 | 191 |
190 // IPC::Listener via RenderProcessHost. | 192 // IPC::Listener via RenderProcessHost. |
191 bool OnMessageReceived(const IPC::Message& msg) override; | 193 bool OnMessageReceived(const IPC::Message& msg) override; |
192 void OnChannelConnected(int32_t peer_pid) override; | 194 void OnChannelConnected(int32_t peer_pid) override; |
193 void OnChannelError() override; | 195 void OnChannelError() override; |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 instance_weak_factory_; | 608 instance_weak_factory_; |
607 | 609 |
608 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 610 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
609 | 611 |
610 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 612 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
611 }; | 613 }; |
612 | 614 |
613 } // namespace content | 615 } // namespace content |
614 | 616 |
615 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 617 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |