| 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 12 matching lines...) Expand all Loading... |
| 23 #include "content/browser/bluetooth/bluetooth_adapter_factory_wrapper.h" | 23 #include "content/browser/bluetooth/bluetooth_adapter_factory_wrapper.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/power_monitor_message_broadcaster.h" | 26 #include "content/browser/power_monitor_message_broadcaster.h" |
| 27 #include "content/common/content_export.h" | 27 #include "content/common/content_export.h" |
| 28 #include "content/common/mojo/service_registry_impl.h" | 28 #include "content/common/mojo/service_registry_impl.h" |
| 29 #include "content/public/browser/render_process_host.h" | 29 #include "content/public/browser/render_process_host.h" |
| 30 #include "ipc/ipc_channel_proxy.h" | 30 #include "ipc/ipc_channel_proxy.h" |
| 31 #include "ipc/ipc_platform_file.h" | 31 #include "ipc/ipc_platform_file.h" |
| 32 #include "mojo/public/cpp/bindings/interface_ptr.h" | 32 #include "mojo/public/cpp/bindings/interface_ptr.h" |
| 33 #include "services/shell/public/interfaces/shell_client.mojom.h" |
| 33 #include "ui/gfx/gpu_memory_buffer.h" | 34 #include "ui/gfx/gpu_memory_buffer.h" |
| 34 #include "ui/gl/gpu_switching_observer.h" | 35 #include "ui/gl/gpu_switching_observer.h" |
| 35 | 36 |
| 36 namespace base { | 37 namespace base { |
| 37 class CommandLine; | 38 class CommandLine; |
| 38 class MessageLoop; | 39 class MessageLoop; |
| 39 } | 40 } |
| 40 | 41 |
| 41 namespace gfx { | 42 namespace gfx { |
| 42 class Size; | 43 class Size; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 void SetWebRtcLogMessageCallback( | 150 void SetWebRtcLogMessageCallback( |
| 150 base::Callback<void(const std::string&)> callback) override; | 151 base::Callback<void(const std::string&)> callback) override; |
| 151 void ClearWebRtcLogMessageCallback() override; | 152 void ClearWebRtcLogMessageCallback() override; |
| 152 WebRtcStopRtpDumpCallback StartRtpDump( | 153 WebRtcStopRtpDumpCallback StartRtpDump( |
| 153 bool incoming, | 154 bool incoming, |
| 154 bool outgoing, | 155 bool outgoing, |
| 155 const WebRtcRtpPacketCallback& packet_callback) override; | 156 const WebRtcRtpPacketCallback& packet_callback) override; |
| 156 #endif | 157 #endif |
| 157 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; | 158 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
| 158 void NotifyTimezoneChange(const std::string& timezone) override; | 159 void NotifyTimezoneChange(const std::string& timezone) override; |
| 159 ServiceRegistry* GetServiceRegistry() override; | 160 shell::InterfaceRegistry* GetInterfaceRegistry() override; |
| 161 shell::InterfaceProvider* GetRemoteInterfaces() override; |
| 160 shell::Connection* GetChildConnection() override; | 162 shell::Connection* GetChildConnection() override; |
| 161 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() | 163 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() |
| 162 override; | 164 override; |
| 163 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; | 165 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; |
| 164 #if defined(ENABLE_BROWSER_CDMS) | 166 #if defined(ENABLE_BROWSER_CDMS) |
| 165 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, | 167 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, |
| 166 int cdm_id) const override; | 168 int cdm_id) const override; |
| 167 #endif | 169 #endif |
| 168 bool IsProcessBackgrounded() const override; | 170 bool IsProcessBackgrounded() const override; |
| 169 void IncrementWorkerRefCount() override; | 171 void IncrementWorkerRefCount() override; |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 #endif | 366 #endif |
| 365 | 367 |
| 366 static void OnMojoError( | 368 static void OnMojoError( |
| 367 base::WeakPtr<RenderProcessHostImpl> process, | 369 base::WeakPtr<RenderProcessHostImpl> process, |
| 368 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 370 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| 369 const std::string& error); | 371 const std::string& error); |
| 370 | 372 |
| 371 std::string child_token_; | 373 std::string child_token_; |
| 372 | 374 |
| 373 std::unique_ptr<MojoChildConnection> mojo_child_connection_; | 375 std::unique_ptr<MojoChildConnection> mojo_child_connection_; |
| 374 std::unique_ptr<MojoApplicationHost> mojo_application_host_; | 376 shell::mojom::ShellClientPtr test_shell_client_; |
| 375 | 377 |
| 376 // The registered IPC listener objects. When this list is empty, we should | 378 // The registered IPC listener objects. When this list is empty, we should |
| 377 // delete ourselves. | 379 // delete ourselves. |
| 378 IDMap<IPC::Listener> listeners_; | 380 IDMap<IPC::Listener> listeners_; |
| 379 | 381 |
| 380 // The count of currently visible widgets. Since the host can be a container | 382 // The count of currently visible widgets. Since the host can be a container |
| 381 // for multiple widgets, it uses this count to determine when it should be | 383 // for multiple widgets, it uses this count to determine when it should be |
| 382 // backgrounded. | 384 // backgrounded. |
| 383 int32_t visible_widgets_; | 385 int32_t visible_widgets_; |
| 384 | 386 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 524 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
| 523 | 525 |
| 524 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 526 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 525 | 527 |
| 526 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 528 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 527 }; | 529 }; |
| 528 | 530 |
| 529 } // namespace content | 531 } // namespace content |
| 530 | 532 |
| 531 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 533 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |