| 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_RENDERER_RENDER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "content/common/frame.mojom.h" | 30 #include "content/common/frame.mojom.h" |
| 31 #include "content/common/frame_replication_state.h" | 31 #include "content/common/frame_replication_state.h" |
| 32 #include "content/common/render_frame_message_filter.mojom.h" | 32 #include "content/common/render_frame_message_filter.mojom.h" |
| 33 #include "content/common/render_message_filter.mojom.h" | 33 #include "content/common/render_message_filter.mojom.h" |
| 34 #include "content/common/renderer.mojom.h" | 34 #include "content/common/renderer.mojom.h" |
| 35 #include "content/common/storage_partition_service.mojom.h" | 35 #include "content/common/storage_partition_service.mojom.h" |
| 36 #include "content/public/renderer/render_thread.h" | 36 #include "content/public/renderer/render_thread.h" |
| 37 #include "content/renderer/gpu/compositor_dependencies.h" | 37 #include "content/renderer/gpu/compositor_dependencies.h" |
| 38 #include "content/renderer/layout_test_dependencies.h" | 38 #include "content/renderer/layout_test_dependencies.h" |
| 39 #include "gpu/ipc/client/gpu_channel_host.h" | 39 #include "gpu/ipc/client/gpu_channel_host.h" |
| 40 #include "media/media_features.h" |
| 40 #include "mojo/public/cpp/bindings/associated_binding.h" | 41 #include "mojo/public/cpp/bindings/associated_binding.h" |
| 41 #include "mojo/public/cpp/bindings/binding.h" | 42 #include "mojo/public/cpp/bindings/binding.h" |
| 42 #include "net/base/network_change_notifier.h" | 43 #include "net/base/network_change_notifier.h" |
| 43 #include "third_party/WebKit/public/platform/WebConnectionType.h" | 44 #include "third_party/WebKit/public/platform/WebConnectionType.h" |
| 44 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" | 45 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" |
| 45 #include "third_party/WebKit/public/web/WebMemoryStatistics.h" | 46 #include "third_party/WebKit/public/web/WebMemoryStatistics.h" |
| 46 #include "ui/gfx/native_widget_types.h" | 47 #include "ui/gfx/native_widget_types.h" |
| 47 | 48 |
| 48 #if defined(OS_MACOSX) | 49 #if defined(OS_MACOSX) |
| 49 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 50 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 | 316 |
| 316 // Creates the embedder implementation of WebMediaStreamCenter. | 317 // Creates the embedder implementation of WebMediaStreamCenter. |
| 317 // The resulting object is owned by WebKit and deleted by WebKit at tear-down. | 318 // The resulting object is owned by WebKit and deleted by WebKit at tear-down. |
| 318 blink::WebMediaStreamCenter* CreateMediaStreamCenter( | 319 blink::WebMediaStreamCenter* CreateMediaStreamCenter( |
| 319 blink::WebMediaStreamCenterClient* client); | 320 blink::WebMediaStreamCenterClient* client); |
| 320 | 321 |
| 321 BrowserPluginManager* browser_plugin_manager() const { | 322 BrowserPluginManager* browser_plugin_manager() const { |
| 322 return browser_plugin_manager_.get(); | 323 return browser_plugin_manager_.get(); |
| 323 } | 324 } |
| 324 | 325 |
| 325 #if defined(ENABLE_WEBRTC) | 326 #if BUILDFLAG(ENABLE_WEBRTC) |
| 326 // Returns a factory used for creating RTC PeerConnection objects. | 327 // Returns a factory used for creating RTC PeerConnection objects. |
| 327 PeerConnectionDependencyFactory* GetPeerConnectionDependencyFactory(); | 328 PeerConnectionDependencyFactory* GetPeerConnectionDependencyFactory(); |
| 328 | 329 |
| 329 PeerConnectionTracker* peer_connection_tracker() { | 330 PeerConnectionTracker* peer_connection_tracker() { |
| 330 return peer_connection_tracker_.get(); | 331 return peer_connection_tracker_.get(); |
| 331 } | 332 } |
| 332 | 333 |
| 333 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. | 334 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. |
| 334 P2PSocketDispatcher* p2p_socket_dispatcher() { | 335 P2PSocketDispatcher* p2p_socket_dispatcher() { |
| 335 return p2p_socket_dispatcher_.get(); | 336 return p2p_socket_dispatcher_.get(); |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 // Used on the renderer and IPC threads. | 561 // Used on the renderer and IPC threads. |
| 561 scoped_refptr<BlobMessageFilter> blob_message_filter_; | 562 scoped_refptr<BlobMessageFilter> blob_message_filter_; |
| 562 scoped_refptr<DBMessageFilter> db_message_filter_; | 563 scoped_refptr<DBMessageFilter> db_message_filter_; |
| 563 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; | 564 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; |
| 564 scoped_refptr<AudioMessageFilter> audio_message_filter_; | 565 scoped_refptr<AudioMessageFilter> audio_message_filter_; |
| 565 scoped_refptr<MidiMessageFilter> midi_message_filter_; | 566 scoped_refptr<MidiMessageFilter> midi_message_filter_; |
| 566 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; | 567 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; |
| 567 | 568 |
| 568 std::unique_ptr<BrowserPluginManager> browser_plugin_manager_; | 569 std::unique_ptr<BrowserPluginManager> browser_plugin_manager_; |
| 569 | 570 |
| 570 #if defined(ENABLE_WEBRTC) | 571 #if BUILDFLAG(ENABLE_WEBRTC) |
| 571 std::unique_ptr<PeerConnectionDependencyFactory> peer_connection_factory_; | 572 std::unique_ptr<PeerConnectionDependencyFactory> peer_connection_factory_; |
| 572 | 573 |
| 573 // This is used to communicate to the browser process the status | 574 // This is used to communicate to the browser process the status |
| 574 // of all the peer connections created in the renderer. | 575 // of all the peer connections created in the renderer. |
| 575 std::unique_ptr<PeerConnectionTracker> peer_connection_tracker_; | 576 std::unique_ptr<PeerConnectionTracker> peer_connection_tracker_; |
| 576 | 577 |
| 577 // Dispatches all P2P sockets. | 578 // Dispatches all P2P sockets. |
| 578 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_; | 579 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_; |
| 579 | 580 |
| 580 // Used for communicating registering AEC dump consumers with the browser and | 581 // Used for communicating registering AEC dump consumers with the browser and |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 737 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 737 }; | 738 }; |
| 738 | 739 |
| 739 #if defined(COMPILER_MSVC) | 740 #if defined(COMPILER_MSVC) |
| 740 #pragma warning(pop) | 741 #pragma warning(pop) |
| 741 #endif | 742 #endif |
| 742 | 743 |
| 743 } // namespace content | 744 } // namespace content |
| 744 | 745 |
| 745 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 746 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |