| 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 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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/public/browser/render_process_host.h" | 30 #include "content/public/browser/render_process_host.h" |
| 31 #include "content/public/common/mojo_shell_connection.h" | 31 #include "content/public/common/service_manager_connection.h" |
| 32 #include "ipc/ipc_channel_proxy.h" | 32 #include "ipc/ipc_channel_proxy.h" |
| 33 #include "ipc/ipc_platform_file.h" | 33 #include "ipc/ipc_platform_file.h" |
| 34 #include "mojo/public/cpp/bindings/associated_binding.h" | 34 #include "mojo/public/cpp/bindings/associated_binding.h" |
| 35 #include "mojo/public/cpp/bindings/associated_binding_set.h" | 35 #include "mojo/public/cpp/bindings/associated_binding_set.h" |
| 36 #include "mojo/public/cpp/bindings/interface_ptr.h" | 36 #include "mojo/public/cpp/bindings/interface_ptr.h" |
| 37 #include "services/shell/public/cpp/interface_registry.h" | 37 #include "services/shell/public/cpp/interface_registry.h" |
| 38 #include "services/shell/public/interfaces/service.mojom.h" | 38 #include "services/shell/public/interfaces/service.mojom.h" |
| 39 #include "ui/gfx/gpu_memory_buffer.h" | 39 #include "ui/gfx/gpu_memory_buffer.h" |
| 40 #include "ui/gl/gpu_switching_observer.h" | 40 #include "ui/gl/gpu_switching_observer.h" |
| 41 | 41 |
| 42 namespace base { | 42 namespace base { |
| 43 class CommandLine; | 43 class CommandLine; |
| 44 class MessageLoop; | 44 class MessageLoop; |
| 45 class SharedPersistentMemoryAllocator; | 45 class SharedPersistentMemoryAllocator; |
| 46 } | 46 } |
| 47 | 47 |
| 48 namespace gfx { | 48 namespace gfx { |
| 49 class Size; | 49 class Size; |
| 50 } | 50 } |
| 51 | 51 |
| 52 namespace IPC { | 52 namespace IPC { |
| 53 class ChannelMojoHost; | 53 class ChannelMojoHost; |
| 54 } | 54 } |
| 55 | 55 |
| 56 namespace content { | 56 namespace content { |
| 57 class AudioInputRendererHost; | 57 class AudioInputRendererHost; |
| 58 class AudioRendererHost; | 58 class AudioRendererHost; |
| 59 class ChildConnection; |
| 59 class InProcessChildThreadParams; | 60 class InProcessChildThreadParams; |
| 60 class MessagePortMessageFilter; | 61 class MessagePortMessageFilter; |
| 61 class MojoChildConnection; | |
| 62 class NotificationMessageFilter; | 62 class NotificationMessageFilter; |
| 63 #if defined(ENABLE_WEBRTC) | 63 #if defined(ENABLE_WEBRTC) |
| 64 class P2PSocketDispatcherHost; | 64 class P2PSocketDispatcherHost; |
| 65 #endif | 65 #endif |
| 66 class PermissionServiceContext; | 66 class PermissionServiceContext; |
| 67 class PeerConnectionTrackerHost; | 67 class PeerConnectionTrackerHost; |
| 68 class RendererMainThread; | 68 class RendererMainThread; |
| 69 class RenderFrameMessageFilter; | 69 class RenderFrameMessageFilter; |
| 70 class RenderWidgetHelper; | 70 class RenderWidgetHelper; |
| 71 class RenderWidgetHost; | 71 class RenderWidgetHost; |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 void AddUIThreadInterface(shell::InterfaceRegistry* registry, | 405 void AddUIThreadInterface(shell::InterfaceRegistry* registry, |
| 406 const CallbackType& callback) { | 406 const CallbackType& callback) { |
| 407 registry->AddInterface( | 407 registry->AddInterface( |
| 408 base::Bind(&InterfaceGetter<CallbackType>::GetInterfaceOnUIThread, | 408 base::Bind(&InterfaceGetter<CallbackType>::GetInterfaceOnUIThread, |
| 409 instance_weak_factory_->GetWeakPtr(), callback), | 409 instance_weak_factory_->GetWeakPtr(), callback), |
| 410 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI)); | 410 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI)); |
| 411 } | 411 } |
| 412 | 412 |
| 413 std::string child_token_; | 413 std::string child_token_; |
| 414 | 414 |
| 415 std::unique_ptr<MojoChildConnection> mojo_child_connection_; | 415 std::unique_ptr<ChildConnection> child_connection_; |
| 416 int connection_filter_id_ = MojoShellConnection::kInvalidConnectionFilterId; | 416 int connection_filter_id_ = |
| 417 ServiceManagerConnection::kInvalidConnectionFilterId; |
| 417 scoped_refptr<ConnectionFilterController> connection_filter_controller_; | 418 scoped_refptr<ConnectionFilterController> connection_filter_controller_; |
| 418 shell::mojom::ServicePtr test_service_; | 419 shell::mojom::ServicePtr test_service_; |
| 419 | 420 |
| 420 size_t service_worker_ref_count_; | 421 size_t service_worker_ref_count_; |
| 421 size_t shared_worker_ref_count_; | 422 size_t shared_worker_ref_count_; |
| 422 | 423 |
| 423 // Set in ForceReleaseWorkerRefCounts. When true, worker ref counts must no | 424 // Set in ForceReleaseWorkerRefCounts. When true, worker ref counts must no |
| 424 // longer be modified. | 425 // longer be modified. |
| 425 bool is_worker_ref_count_disabled_; | 426 bool is_worker_ref_count_disabled_; |
| 426 | 427 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 instance_weak_factory_; | 580 instance_weak_factory_; |
| 580 | 581 |
| 581 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 582 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 582 | 583 |
| 583 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 584 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 584 }; | 585 }; |
| 585 | 586 |
| 586 } // namespace content | 587 } // namespace content |
| 587 | 588 |
| 588 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 589 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |