| 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_RENDERER_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class DeviceOrientationEventPump; | 44 class DeviceOrientationEventPump; |
| 45 class PlatformEventObserverBase; | 45 class PlatformEventObserverBase; |
| 46 class QuotaMessageFilter; | 46 class QuotaMessageFilter; |
| 47 class RendererClipboardDelegate; | 47 class RendererClipboardDelegate; |
| 48 class RendererScheduler; | 48 class RendererScheduler; |
| 49 class RenderView; | 49 class RenderView; |
| 50 class ThreadSafeSender; | 50 class ThreadSafeSender; |
| 51 class WebClipboardImpl; | 51 class WebClipboardImpl; |
| 52 class WebDatabaseObserverImpl; | 52 class WebDatabaseObserverImpl; |
| 53 class WebFileSystemImpl; | 53 class WebFileSystemImpl; |
| 54 class WebThreadImplForScheduler; | 54 class WebThreadImplForRendererScheduler; |
| 55 class WebSchedulerImpl; | 55 class WebSchedulerImpl; |
| 56 | 56 |
| 57 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { | 57 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
| 58 public: | 58 public: |
| 59 explicit RendererBlinkPlatformImpl(RendererScheduler* renderer_scheduler); | 59 explicit RendererBlinkPlatformImpl(RendererScheduler* renderer_scheduler); |
| 60 virtual ~RendererBlinkPlatformImpl(); | 60 virtual ~RendererBlinkPlatformImpl(); |
| 61 | 61 |
| 62 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { | 62 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { |
| 63 plugin_refresh_allowed_ = plugin_refresh_allowed; | 63 plugin_refresh_allowed_ = plugin_refresh_allowed; |
| 64 } | 64 } |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // it. | 202 // it. |
| 203 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( | 203 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( |
| 204 blink::WebPlatformEventType type); | 204 blink::WebPlatformEventType type); |
| 205 | 205 |
| 206 // Use the data previously set via SetMockDevice...DataForTesting() and send | 206 // Use the data previously set via SetMockDevice...DataForTesting() and send |
| 207 // them to the registered listener. | 207 // them to the registered listener. |
| 208 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); | 208 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); |
| 209 device::VibrationManagerPtr& GetConnectedVibrationManagerService(); | 209 device::VibrationManagerPtr& GetConnectedVibrationManagerService(); |
| 210 | 210 |
| 211 scoped_ptr<WebSchedulerImpl> web_scheduler_; | 211 scoped_ptr<WebSchedulerImpl> web_scheduler_; |
| 212 scoped_ptr<WebThreadImplForScheduler> main_thread_; | 212 scoped_ptr<WebThreadImplForRendererScheduler> main_thread_; |
| 213 | 213 |
| 214 scoped_ptr<RendererClipboardDelegate> clipboard_delegate_; | 214 scoped_ptr<RendererClipboardDelegate> clipboard_delegate_; |
| 215 scoped_ptr<WebClipboardImpl> clipboard_; | 215 scoped_ptr<WebClipboardImpl> clipboard_; |
| 216 | 216 |
| 217 class FileUtilities; | 217 class FileUtilities; |
| 218 scoped_ptr<FileUtilities> file_utilities_; | 218 scoped_ptr<FileUtilities> file_utilities_; |
| 219 | 219 |
| 220 class MimeRegistry; | 220 class MimeRegistry; |
| 221 scoped_ptr<MimeRegistry> mime_registry_; | 221 scoped_ptr<MimeRegistry> mime_registry_; |
| 222 | 222 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 device::VibrationManagerPtr vibration_manager_; | 261 device::VibrationManagerPtr vibration_manager_; |
| 262 | 262 |
| 263 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 263 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
| 264 | 264 |
| 265 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 265 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
| 266 }; | 266 }; |
| 267 | 267 |
| 268 } // namespace content | 268 } // namespace content |
| 269 | 269 |
| 270 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 270 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |