| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 namespace cc { | 25 namespace cc { |
| 26 class ContextProvider; | 26 class ContextProvider; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace IPC { | 29 namespace IPC { |
| 30 class SyncMessageFilter; | 30 class SyncMessageFilter; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 class WebBatteryStatus; | |
| 35 class WebCanvasCaptureHandler; | 34 class WebCanvasCaptureHandler; |
| 36 class WebDeviceMotionData; | 35 class WebDeviceMotionData; |
| 37 class WebDeviceOrientationData; | 36 class WebDeviceOrientationData; |
| 38 class WebGraphicsContext3DProvider; | 37 class WebGraphicsContext3DProvider; |
| 39 class WebMediaPlayer; | 38 class WebMediaPlayer; |
| 40 class WebMediaRecorderHandler; | 39 class WebMediaRecorderHandler; |
| 41 class WebMediaStream; | 40 class WebMediaStream; |
| 42 class WebSecurityOrigin; | 41 class WebSecurityOrigin; |
| 43 class WebServiceWorkerCacheStorage; | 42 class WebServiceWorkerCacheStorage; |
| 44 } | 43 } |
| 45 | 44 |
| 46 namespace scheduler { | 45 namespace scheduler { |
| 47 class RendererScheduler; | 46 class RendererScheduler; |
| 48 class WebThreadImplForRendererScheduler; | 47 class WebThreadImplForRendererScheduler; |
| 49 } | 48 } |
| 50 | 49 |
| 51 namespace content { | 50 namespace content { |
| 52 class BatteryStatusDispatcher; | |
| 53 class DeviceLightEventPump; | 51 class DeviceLightEventPump; |
| 54 class DeviceMotionEventPump; | 52 class DeviceMotionEventPump; |
| 55 class DeviceOrientationEventPump; | 53 class DeviceOrientationEventPump; |
| 56 class PlatformEventObserverBase; | 54 class PlatformEventObserverBase; |
| 57 class QuotaMessageFilter; | 55 class QuotaMessageFilter; |
| 58 class RendererClipboardDelegate; | 56 class RendererClipboardDelegate; |
| 59 class RenderView; | 57 class RenderView; |
| 60 class ThreadSafeSender; | 58 class ThreadSafeSender; |
| 61 class WebClipboardImpl; | 59 class WebClipboardImpl; |
| 62 class WebDatabaseObserverImpl; | 60 class WebDatabaseObserverImpl; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 168 blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
| 171 const blink::WebGraphicsContext3D::Attributes& attributes, | 169 const blink::WebGraphicsContext3D::Attributes& attributes, |
| 172 blink::WebGraphicsContext3D* share_context, | 170 blink::WebGraphicsContext3D* share_context, |
| 173 blink::WebGraphicsContext3D::WebGraphicsInfo* gl_info) override; | 171 blink::WebGraphicsContext3D::WebGraphicsInfo* gl_info) override; |
| 174 blink::WebGraphicsContext3DProvider* | 172 blink::WebGraphicsContext3DProvider* |
| 175 createSharedOffscreenGraphicsContext3DProvider() override; | 173 createSharedOffscreenGraphicsContext3DProvider() override; |
| 176 blink::WebCompositorSupport* compositorSupport() override; | 174 blink::WebCompositorSupport* compositorSupport() override; |
| 177 blink::WebString convertIDNToUnicode( | 175 blink::WebString convertIDNToUnicode( |
| 178 const blink::WebString& host, | 176 const blink::WebString& host, |
| 179 const blink::WebString& languages) override; | 177 const blink::WebString& languages) override; |
| 178 void connectToRemoteService(const char* name, |
| 179 mojo::ScopedMessagePipeHandle handle) override; |
| 180 void startListening(blink::WebPlatformEventType, | 180 void startListening(blink::WebPlatformEventType, |
| 181 blink::WebPlatformEventListener*) override; | 181 blink::WebPlatformEventListener*) override; |
| 182 void stopListening(blink::WebPlatformEventType) override; | 182 void stopListening(blink::WebPlatformEventType) override; |
| 183 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, | 183 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, |
| 184 blink::WebStorageQuotaType, | 184 blink::WebStorageQuotaType, |
| 185 blink::WebStorageQuotaCallbacks) override; | 185 blink::WebStorageQuotaCallbacks) override; |
| 186 void vibrate(unsigned int milliseconds) override; | 186 void vibrate(unsigned int milliseconds) override; |
| 187 void cancelVibration() override; | 187 void cancelVibration() override; |
| 188 blink::WebThread* currentThread() override; | 188 blink::WebThread* currentThread() override; |
| 189 void recordRappor(const char* metric, | 189 void recordRappor(const char* metric, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 210 // Set a double to return when setDeviceLightListener is invoked. | 210 // Set a double to return when setDeviceLightListener is invoked. |
| 211 static void SetMockDeviceLightDataForTesting(double data); | 211 static void SetMockDeviceLightDataForTesting(double data); |
| 212 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. | 212 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. |
| 213 static void SetMockDeviceMotionDataForTesting( | 213 static void SetMockDeviceMotionDataForTesting( |
| 214 const blink::WebDeviceMotionData& data); | 214 const blink::WebDeviceMotionData& data); |
| 215 // Set WebDeviceOrientationData to return when setDeviceOrientationListener | 215 // Set WebDeviceOrientationData to return when setDeviceOrientationListener |
| 216 // is invoked. | 216 // is invoked. |
| 217 static void SetMockDeviceOrientationDataForTesting( | 217 static void SetMockDeviceOrientationDataForTesting( |
| 218 const blink::WebDeviceOrientationData& data); | 218 const blink::WebDeviceOrientationData& data); |
| 219 | 219 |
| 220 // Notifies blink::WebBatteryStatusListener that battery status has changed. | |
| 221 void MockBatteryStatusChangedForTesting( | |
| 222 const blink::WebBatteryStatus& status); | |
| 223 | |
| 224 WebDatabaseObserverImpl* web_database_observer_impl() { | 220 WebDatabaseObserverImpl* web_database_observer_impl() { |
| 225 return web_database_observer_impl_.get(); | 221 return web_database_observer_impl_.get(); |
| 226 } | 222 } |
| 227 | 223 |
| 228 blink::WebURLLoader* createURLLoader() override; | 224 blink::WebURLLoader* createURLLoader() override; |
| 229 | 225 |
| 230 private: | 226 private: |
| 231 bool CheckPreparsedJsCachingEnabled() const; | 227 bool CheckPreparsedJsCachingEnabled() const; |
| 232 | 228 |
| 233 // Factory that takes a type and return PlatformEventObserverBase that matches | 229 // Factory that takes a type and return PlatformEventObserverBase that matches |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 276 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
| 281 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 277 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 282 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 278 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
| 283 | 279 |
| 284 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 280 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
| 285 | 281 |
| 286 cc_blink::WebCompositorSupportImpl compositor_support_; | 282 cc_blink::WebCompositorSupportImpl compositor_support_; |
| 287 | 283 |
| 288 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 284 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
| 289 | 285 |
| 290 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | |
| 291 | |
| 292 // Handle to the Vibration mojo service. | 286 // Handle to the Vibration mojo service. |
| 293 device::VibrationManagerPtr vibration_manager_; | 287 device::VibrationManagerPtr vibration_manager_; |
| 294 | 288 |
| 295 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 289 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
| 296 | 290 |
| 297 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED | 291 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED |
| 298 | 292 |
| 299 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 293 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
| 300 }; | 294 }; |
| 301 | 295 |
| 302 } // namespace content | 296 } // namespace content |
| 303 | 297 |
| 304 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 298 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |