| 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 WebThreadImplForRendererScheduler; | 54 class WebThreadImplForScheduler; |
| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 // it. | 204 // it. |
| 205 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( | 205 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( |
| 206 blink::WebPlatformEventType type); | 206 blink::WebPlatformEventType type); |
| 207 | 207 |
| 208 // Use the data previously set via SetMockDevice...DataForTesting() and send | 208 // Use the data previously set via SetMockDevice...DataForTesting() and send |
| 209 // them to the registered listener. | 209 // them to the registered listener. |
| 210 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); | 210 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); |
| 211 device::VibrationManagerPtr& GetConnectedVibrationManagerService(); | 211 device::VibrationManagerPtr& GetConnectedVibrationManagerService(); |
| 212 | 212 |
| 213 scoped_ptr<WebSchedulerImpl> web_scheduler_; | 213 scoped_ptr<WebSchedulerImpl> web_scheduler_; |
| 214 scoped_ptr<WebThreadImplForRendererScheduler> main_thread_; | 214 scoped_ptr<WebThreadImplForScheduler> main_thread_; |
| 215 | 215 |
| 216 scoped_ptr<RendererClipboardDelegate> clipboard_delegate_; | 216 scoped_ptr<RendererClipboardDelegate> clipboard_delegate_; |
| 217 scoped_ptr<WebClipboardImpl> clipboard_; | 217 scoped_ptr<WebClipboardImpl> clipboard_; |
| 218 | 218 |
| 219 class FileUtilities; | 219 class FileUtilities; |
| 220 scoped_ptr<FileUtilities> file_utilities_; | 220 scoped_ptr<FileUtilities> file_utilities_; |
| 221 | 221 |
| 222 class MimeRegistry; | 222 class MimeRegistry; |
| 223 scoped_ptr<MimeRegistry> mime_registry_; | 223 scoped_ptr<MimeRegistry> mime_registry_; |
| 224 | 224 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 device::VibrationManagerPtr vibration_manager_; | 263 device::VibrationManagerPtr vibration_manager_; |
| 264 | 264 |
| 265 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 265 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
| 266 | 266 |
| 267 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 267 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
| 268 }; | 268 }; |
| 269 | 269 |
| 270 } // namespace content | 270 } // namespace content |
| 271 | 271 |
| 272 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 272 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |