| 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> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "content/public/renderer/render_thread.h" | 21 #include "content/public/renderer/render_thread.h" |
| 22 #include "content/renderer/media/renderer_gpu_video_decoder_factories.h" | 22 #include "content/renderer/media/renderer_gpu_video_decoder_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 WebKit { |
| 31 class WebGamepads; |
| 31 class WebGraphicsContext3D; | 32 class WebGraphicsContext3D; |
| 32 class WebMediaStreamCenter; | 33 class WebMediaStreamCenter; |
| 33 class WebMediaStreamCenterClient; | 34 class WebMediaStreamCenterClient; |
| 34 } | 35 } |
| 35 | 36 |
| 36 namespace base { | 37 namespace base { |
| 37 class MessageLoopProxy; | 38 class MessageLoopProxy; |
| 38 class Thread; | 39 class Thread; |
| 39 | 40 |
| 40 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 70 namespace content { | 71 namespace content { |
| 71 | 72 |
| 72 class AppCacheDispatcher; | 73 class AppCacheDispatcher; |
| 73 class AudioInputMessageFilter; | 74 class AudioInputMessageFilter; |
| 74 class AudioMessageFilter; | 75 class AudioMessageFilter; |
| 75 class AudioRendererMixerManager; | 76 class AudioRendererMixerManager; |
| 76 class ContextProviderCommandBuffer; | 77 class ContextProviderCommandBuffer; |
| 77 class DBMessageFilter; | 78 class DBMessageFilter; |
| 78 class DevToolsAgentFilter; | 79 class DevToolsAgentFilter; |
| 79 class DomStorageDispatcher; | 80 class DomStorageDispatcher; |
| 81 class GamepadSharedMemoryReader; |
| 80 class GpuChannelHost; | 82 class GpuChannelHost; |
| 81 class IndexedDBDispatcher; | 83 class IndexedDBDispatcher; |
| 82 class InputEventFilter; | 84 class InputEventFilter; |
| 83 class InputHandlerManager; | 85 class InputHandlerManager; |
| 84 class MediaStreamCenter; | 86 class MediaStreamCenter; |
| 85 class MediaStreamDependencyFactory; | 87 class MediaStreamDependencyFactory; |
| 86 class MIDIMessageFilter; | 88 class MIDIMessageFilter; |
| 87 class P2PSocketDispatcher; | 89 class P2PSocketDispatcher; |
| 88 class PeerConnectionTracker; | 90 class PeerConnectionTracker; |
| 89 class RendererWebKitPlatformSupportImpl; | 91 class RendererWebKitPlatformSupportImpl; |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 DISALLOW_COPY_AND_ASSIGN(HistogramCustomizer); | 340 DISALLOW_COPY_AND_ASSIGN(HistogramCustomizer); |
| 339 }; | 341 }; |
| 340 | 342 |
| 341 HistogramCustomizer* histogram_customizer() { | 343 HistogramCustomizer* histogram_customizer() { |
| 342 return &histogram_customizer_; | 344 return &histogram_customizer_; |
| 343 } | 345 } |
| 344 | 346 |
| 345 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, | 347 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, |
| 346 const std::vector<float>& new_touchscreen); | 348 const std::vector<float>& new_touchscreen); |
| 347 | 349 |
| 350 // Retrieve current gamepad data. |
| 351 void SampleGamepads(WebKit::WebGamepads* data); |
| 352 |
| 348 private: | 353 private: |
| 349 // ChildThread | 354 // ChildThread |
| 350 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 355 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 351 | 356 |
| 352 // GpuChannelHostFactory implementation: | 357 // GpuChannelHostFactory implementation: |
| 353 virtual bool IsMainThread() OVERRIDE; | 358 virtual bool IsMainThread() OVERRIDE; |
| 354 virtual base::MessageLoop* GetMainLoop() OVERRIDE; | 359 virtual base::MessageLoop* GetMainLoop() OVERRIDE; |
| 355 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; | 360 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; |
| 356 virtual base::WaitableEvent* GetShutDownEvent() OVERRIDE; | 361 virtual base::WaitableEvent* GetShutDownEvent() OVERRIDE; |
| 357 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( | 362 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 | 484 |
| 480 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; | 485 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; |
| 481 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; | 486 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; |
| 482 | 487 |
| 483 HistogramCustomizer histogram_customizer_; | 488 HistogramCustomizer histogram_customizer_; |
| 484 | 489 |
| 485 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 490 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 486 | 491 |
| 487 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; | 492 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; |
| 488 | 493 |
| 494 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 495 |
| 489 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 496 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 490 }; | 497 }; |
| 491 | 498 |
| 492 } // namespace content | 499 } // namespace content |
| 493 | 500 |
| 494 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 501 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |