| 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 21 matching lines...) Expand all Loading... |
| 32 namespace IPC { | 32 namespace IPC { |
| 33 class SyncMessageFilter; | 33 class SyncMessageFilter; |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 namespace scheduler { | 37 namespace scheduler { |
| 38 class RendererScheduler; | 38 class RendererScheduler; |
| 39 class WebThreadImplForRendererScheduler; | 39 class WebThreadImplForRendererScheduler; |
| 40 } | 40 } |
| 41 class WebCanvasCaptureHandler; | 41 class WebCanvasCaptureHandler; |
| 42 class WebDeviceMotionData; | |
| 43 class WebDeviceOrientationData; | |
| 44 class WebGraphicsContext3DProvider; | 42 class WebGraphicsContext3DProvider; |
| 45 class WebMediaPlayer; | 43 class WebMediaPlayer; |
| 46 class WebMediaRecorderHandler; | 44 class WebMediaRecorderHandler; |
| 47 class WebMediaStream; | 45 class WebMediaStream; |
| 48 class WebSecurityOrigin; | 46 class WebSecurityOrigin; |
| 49 class WebServiceWorkerCacheStorage; | 47 class WebServiceWorkerCacheStorage; |
| 50 } | 48 } |
| 51 | 49 |
| 50 namespace device { |
| 51 class MotionData; |
| 52 class OrientationData; |
| 53 } |
| 54 |
| 52 namespace shell { | 55 namespace shell { |
| 53 class InterfaceProvider; | 56 class InterfaceProvider; |
| 54 } | 57 } |
| 55 | 58 |
| 56 namespace content { | 59 namespace content { |
| 57 class BlinkInterfaceProviderImpl; | 60 class BlinkInterfaceProviderImpl; |
| 58 class LocalStorageCachedAreas; | 61 class LocalStorageCachedAreas; |
| 59 class PlatformEventObserverBase; | 62 class PlatformEventObserverBase; |
| 60 class QuotaMessageFilter; | 63 class QuotaMessageFilter; |
| 61 class RendererClipboardDelegate; | 64 class RendererClipboardDelegate; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 // Tests that do not set up a full sandbox environment should call | 226 // Tests that do not set up a full sandbox environment should call |
| 224 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 227 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
| 225 // of this class, to ensure that we don't attempt to use sandbox-related | 228 // of this class, to ensure that we don't attempt to use sandbox-related |
| 226 // file descriptors or other resources. | 229 // file descriptors or other resources. |
| 227 // | 230 // |
| 228 // Returns the previous |enable| value. | 231 // Returns the previous |enable| value. |
| 229 static bool SetSandboxEnabledForTesting(bool enable); | 232 static bool SetSandboxEnabledForTesting(bool enable); |
| 230 | 233 |
| 231 // Set a double to return when setDeviceLightListener is invoked. | 234 // Set a double to return when setDeviceLightListener is invoked. |
| 232 static void SetMockDeviceLightDataForTesting(double data); | 235 static void SetMockDeviceLightDataForTesting(double data); |
| 233 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. | 236 // Set MotionData to return when setDeviceMotionListener is invoked. |
| 234 static void SetMockDeviceMotionDataForTesting( | 237 static void SetMockDeviceMotionDataForTesting(const device::MotionData& data); |
| 235 const blink::WebDeviceMotionData& data); | 238 // Set OrientationData to return when setDeviceOrientationListener |
| 236 // Set WebDeviceOrientationData to return when setDeviceOrientationListener | |
| 237 // is invoked. | 239 // is invoked. |
| 238 static void SetMockDeviceOrientationDataForTesting( | 240 static void SetMockDeviceOrientationDataForTesting( |
| 239 const blink::WebDeviceOrientationData& data); | 241 const device::OrientationData& data); |
| 240 | 242 |
| 241 WebDatabaseObserverImpl* web_database_observer_impl() { | 243 WebDatabaseObserverImpl* web_database_observer_impl() { |
| 242 return web_database_observer_impl_.get(); | 244 return web_database_observer_impl_.get(); |
| 243 } | 245 } |
| 244 | 246 |
| 245 blink::WebURLLoader* createURLLoader() override; | 247 blink::WebURLLoader* createURLLoader() override; |
| 246 | 248 |
| 247 private: | 249 private: |
| 248 bool CheckPreparsedJsCachingEnabled() const; | 250 bool CheckPreparsedJsCachingEnabled() const; |
| 249 | 251 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; | 314 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; |
| 313 | 315 |
| 314 mojom::URLLoaderFactoryPtr url_loader_factory_; | 316 mojom::URLLoaderFactoryPtr url_loader_factory_; |
| 315 | 317 |
| 316 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 318 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
| 317 }; | 319 }; |
| 318 | 320 |
| 319 } // namespace content | 321 } // namespace content |
| 320 | 322 |
| 321 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 323 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |