| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/memory/memory_pressure_listener.h" | 12 #include "base/memory/memory_pressure_listener.h" |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "base/process/process_handle.h" | 14 #include "base/process/process_handle.h" |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
| 17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
| 18 #include "content/child/child_thread.h" | 18 #include "content/child/child_thread.h" |
| 19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
| 20 #include "content/common/gpu/client/gpu_channel_host.h" | 20 #include "content/common/gpu/client/gpu_channel_host.h" |
| 21 #include "content/public/renderer/render_thread.h" | 21 #include "content/public/renderer/render_thread.h" |
| 22 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h" | 22 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h" |
| 23 #include "ipc/ipc_channel_proxy.h" | 23 #include "ipc/ipc_channel_proxy.h" |
| 24 #include "ui/gfx/native_widget_types.h" | 24 #include "ui/gfx/native_widget_types.h" |
| 25 | 25 |
| 26 class GrContext; | 26 class GrContext; |
| 27 class SkBitmap; | 27 class SkBitmap; |
| 28 struct ViewMsg_New_Params; | 28 struct ViewMsg_New_Params; |
| 29 | 29 |
| 30 namespace WebKit { | 30 namespace blink { |
| 31 class WebGamepads; | 31 class WebGamepads; |
| 32 class WebGraphicsContext3D; | 32 class WebGraphicsContext3D; |
| 33 class WebMediaStreamCenter; | 33 class WebMediaStreamCenter; |
| 34 class WebMediaStreamCenterClient; | 34 class WebMediaStreamCenterClient; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace base { | 37 namespace base { |
| 38 class MessageLoopProxy; | 38 class MessageLoopProxy; |
| 39 class Thread; | 39 class Thread; |
| 40 | 40 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 } | 217 } |
| 218 | 218 |
| 219 #if defined(OS_ANDROID) | 219 #if defined(OS_ANDROID) |
| 220 RendererDemuxerAndroid* renderer_demuxer() { | 220 RendererDemuxerAndroid* renderer_demuxer() { |
| 221 return renderer_demuxer_.get(); | 221 return renderer_demuxer_.get(); |
| 222 } | 222 } |
| 223 #endif | 223 #endif |
| 224 | 224 |
| 225 // Creates the embedder implementation of WebMediaStreamCenter. | 225 // Creates the embedder implementation of WebMediaStreamCenter. |
| 226 // The resulting object is owned by WebKit and deleted by WebKit at tear-down. | 226 // The resulting object is owned by WebKit and deleted by WebKit at tear-down. |
| 227 WebKit::WebMediaStreamCenter* CreateMediaStreamCenter( | 227 blink::WebMediaStreamCenter* CreateMediaStreamCenter( |
| 228 WebKit::WebMediaStreamCenterClient* client); | 228 blink::WebMediaStreamCenterClient* client); |
| 229 | 229 |
| 230 // Returns a factory used for creating RTC PeerConnection objects. | 230 // Returns a factory used for creating RTC PeerConnection objects. |
| 231 MediaStreamDependencyFactory* GetMediaStreamDependencyFactory(); | 231 MediaStreamDependencyFactory* GetMediaStreamDependencyFactory(); |
| 232 | 232 |
| 233 PeerConnectionTracker* peer_connection_tracker() { | 233 PeerConnectionTracker* peer_connection_tracker() { |
| 234 return peer_connection_tracker_.get(); | 234 return peer_connection_tracker_.get(); |
| 235 } | 235 } |
| 236 | 236 |
| 237 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. | 237 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. |
| 238 P2PSocketDispatcher* p2p_socket_dispatcher() { | 238 P2PSocketDispatcher* p2p_socket_dispatcher() { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 }; | 330 }; |
| 331 | 331 |
| 332 HistogramCustomizer* histogram_customizer() { | 332 HistogramCustomizer* histogram_customizer() { |
| 333 return &histogram_customizer_; | 333 return &histogram_customizer_; |
| 334 } | 334 } |
| 335 | 335 |
| 336 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, | 336 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, |
| 337 const std::vector<float>& new_touchscreen); | 337 const std::vector<float>& new_touchscreen); |
| 338 | 338 |
| 339 // Retrieve current gamepad data. | 339 // Retrieve current gamepad data. |
| 340 void SampleGamepads(WebKit::WebGamepads* data); | 340 void SampleGamepads(blink::WebGamepads* data); |
| 341 | 341 |
| 342 // Get the browser process's notion of the renderer process's ID. | 342 // Get the browser process's notion of the renderer process's ID. |
| 343 // This is the first argument to RenderWidgetHost::FromID. Ideally | 343 // This is the first argument to RenderWidgetHost::FromID. Ideally |
| 344 // this would be available on all platforms via base::Process. | 344 // this would be available on all platforms via base::Process. |
| 345 base::ProcessId renderer_process_id() const; | 345 base::ProcessId renderer_process_id() const; |
| 346 | 346 |
| 347 private: | 347 private: |
| 348 // ChildThread | 348 // ChildThread |
| 349 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 349 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 350 | 350 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 388 |
| 389 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d(); | 389 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d(); |
| 390 | 390 |
| 391 // These objects live solely on the render thread. | 391 // These objects live solely on the render thread. |
| 392 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 392 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
| 393 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; | 393 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; |
| 394 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; | 394 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; |
| 395 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_; | 395 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_; |
| 396 | 396 |
| 397 // Used on the render thread and deleted by WebKit at shutdown. | 397 // Used on the render thread and deleted by WebKit at shutdown. |
| 398 WebKit::WebMediaStreamCenter* media_stream_center_; | 398 blink::WebMediaStreamCenter* media_stream_center_; |
| 399 | 399 |
| 400 // Used on the renderer and IPC threads. | 400 // Used on the renderer and IPC threads. |
| 401 scoped_refptr<DBMessageFilter> db_message_filter_; | 401 scoped_refptr<DBMessageFilter> db_message_filter_; |
| 402 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; | 402 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; |
| 403 scoped_refptr<AudioMessageFilter> audio_message_filter_; | 403 scoped_refptr<AudioMessageFilter> audio_message_filter_; |
| 404 scoped_refptr<MIDIMessageFilter> midi_message_filter_; | 404 scoped_refptr<MIDIMessageFilter> midi_message_filter_; |
| 405 #if defined(OS_ANDROID) | 405 #if defined(OS_ANDROID) |
| 406 scoped_refptr<RendererDemuxerAndroid> renderer_demuxer_; | 406 scoped_refptr<RendererDemuxerAndroid> renderer_demuxer_; |
| 407 #endif | 407 #endif |
| 408 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; | 408 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 493 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 494 | 494 |
| 495 base::ProcessId renderer_process_id_; | 495 base::ProcessId renderer_process_id_; |
| 496 | 496 |
| 497 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 497 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 498 }; | 498 }; |
| 499 | 499 |
| 500 } // namespace content | 500 } // namespace content |
| 501 | 501 |
| 502 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 502 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |