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 19 matching lines...) Expand all Loading... |
30 } | 30 } |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
33 class WebBatteryStatus; | 33 class WebBatteryStatus; |
34 class WebDeviceMotionData; | 34 class WebDeviceMotionData; |
35 class WebDeviceOrientationData; | 35 class WebDeviceOrientationData; |
36 class WebGraphicsContext3DProvider; | 36 class WebGraphicsContext3DProvider; |
37 class WebServiceWorkerCacheStorage; | 37 class WebServiceWorkerCacheStorage; |
38 } | 38 } |
39 | 39 |
| 40 namespace scheduler { |
| 41 class RendererScheduler; |
| 42 class WebThreadImplForRendererScheduler; |
| 43 } |
| 44 |
40 namespace content { | 45 namespace content { |
41 class BatteryStatusDispatcher; | 46 class BatteryStatusDispatcher; |
42 class DeviceLightEventPump; | 47 class DeviceLightEventPump; |
43 class DeviceMotionEventPump; | 48 class DeviceMotionEventPump; |
44 class DeviceOrientationEventPump; | 49 class DeviceOrientationEventPump; |
45 class PlatformEventObserverBase; | 50 class PlatformEventObserverBase; |
46 class QuotaMessageFilter; | 51 class QuotaMessageFilter; |
47 class RendererClipboardDelegate; | 52 class RendererClipboardDelegate; |
48 class RendererScheduler; | |
49 class RenderView; | 53 class RenderView; |
50 class ThreadSafeSender; | 54 class ThreadSafeSender; |
51 class WebClipboardImpl; | 55 class WebClipboardImpl; |
52 class WebDatabaseObserverImpl; | 56 class WebDatabaseObserverImpl; |
53 class WebFileSystemImpl; | 57 class WebFileSystemImpl; |
54 class WebThreadImplForRendererScheduler; | |
55 | 58 |
56 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { | 59 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
57 public: | 60 public: |
58 explicit RendererBlinkPlatformImpl(RendererScheduler* renderer_scheduler); | 61 explicit RendererBlinkPlatformImpl( |
| 62 scheduler::RendererScheduler* renderer_scheduler); |
59 virtual ~RendererBlinkPlatformImpl(); | 63 virtual ~RendererBlinkPlatformImpl(); |
60 | 64 |
61 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { | 65 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { |
62 plugin_refresh_allowed_ = plugin_refresh_allowed; | 66 plugin_refresh_allowed_ = plugin_refresh_allowed; |
63 } | 67 } |
64 // Platform methods: | 68 // Platform methods: |
65 virtual blink::WebClipboard* clipboard(); | 69 virtual blink::WebClipboard* clipboard(); |
66 virtual blink::WebMimeRegistry* mimeRegistry(); | 70 virtual blink::WebMimeRegistry* mimeRegistry(); |
67 virtual blink::WebFileUtilities* fileUtilities(); | 71 virtual blink::WebFileUtilities* fileUtilities(); |
68 virtual blink::WebSandboxSupport* sandboxSupport(); | 72 virtual blink::WebSandboxSupport* sandboxSupport(); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // Factory that takes a type and return PlatformEventObserverBase that matches | 205 // Factory that takes a type and return PlatformEventObserverBase that matches |
202 // it. | 206 // it. |
203 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( | 207 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( |
204 blink::WebPlatformEventType type); | 208 blink::WebPlatformEventType type); |
205 | 209 |
206 // Use the data previously set via SetMockDevice...DataForTesting() and send | 210 // Use the data previously set via SetMockDevice...DataForTesting() and send |
207 // them to the registered listener. | 211 // them to the registered listener. |
208 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); | 212 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); |
209 device::VibrationManagerPtr& GetConnectedVibrationManagerService(); | 213 device::VibrationManagerPtr& GetConnectedVibrationManagerService(); |
210 | 214 |
211 scoped_ptr<WebThreadImplForRendererScheduler> main_thread_; | 215 scoped_ptr<scheduler::WebThreadImplForRendererScheduler> main_thread_; |
212 | 216 |
213 scoped_ptr<RendererClipboardDelegate> clipboard_delegate_; | 217 scoped_ptr<RendererClipboardDelegate> clipboard_delegate_; |
214 scoped_ptr<WebClipboardImpl> clipboard_; | 218 scoped_ptr<WebClipboardImpl> clipboard_; |
215 | 219 |
216 class FileUtilities; | 220 class FileUtilities; |
217 scoped_ptr<FileUtilities> file_utilities_; | 221 scoped_ptr<FileUtilities> file_utilities_; |
218 | 222 |
219 class MimeRegistry; | 223 class MimeRegistry; |
220 scoped_ptr<MimeRegistry> mime_registry_; | 224 scoped_ptr<MimeRegistry> mime_registry_; |
221 | 225 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 device::VibrationManagerPtr vibration_manager_; | 264 device::VibrationManagerPtr vibration_manager_; |
261 | 265 |
262 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 266 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
263 | 267 |
264 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 268 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
265 }; | 269 }; |
266 | 270 |
267 } // namespace content | 271 } // namespace content |
268 | 272 |
269 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 273 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |