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 17 matching lines...) Expand all Loading... |
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 namespace scheduler { | 34 namespace scheduler { |
35 class RendererScheduler; | 35 class RendererScheduler; |
36 } | 36 } |
37 class WebCanvasCaptureHandler; | 37 class WebCanvasCaptureHandler; |
| 38 class WebDeviceMotionData; |
38 class WebGraphicsContext3DProvider; | 39 class WebGraphicsContext3DProvider; |
39 class WebMediaPlayer; | 40 class WebMediaPlayer; |
40 class WebMediaRecorderHandler; | 41 class WebMediaRecorderHandler; |
41 class WebMediaStream; | 42 class WebMediaStream; |
42 class WebSecurityOrigin; | 43 class WebSecurityOrigin; |
43 class WebServiceWorkerCacheStorage; | 44 class WebServiceWorkerCacheStorage; |
44 } | 45 } |
45 | 46 |
46 namespace device { | 47 namespace device { |
47 class Gamepads; | 48 class Gamepads; |
48 class MotionData; | |
49 class OrientationData; | 49 class OrientationData; |
50 } | 50 } |
51 | 51 |
52 namespace service_manager { | 52 namespace service_manager { |
53 class Connector; | 53 class Connector; |
54 } | 54 } |
55 | 55 |
56 namespace content { | 56 namespace content { |
57 class BlinkInterfaceProviderImpl; | 57 class BlinkInterfaceProviderImpl; |
58 class LocalStorageCachedAreas; | 58 class LocalStorageCachedAreas; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // Disables the WebSandboxSupport implementation for testing. | 222 // Disables the WebSandboxSupport implementation for testing. |
223 // Tests that do not set up a full sandbox environment should call | 223 // Tests that do not set up a full sandbox environment should call |
224 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 224 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
225 // of this class, to ensure that we don't attempt to use sandbox-related | 225 // of this class, to ensure that we don't attempt to use sandbox-related |
226 // file descriptors or other resources. | 226 // file descriptors or other resources. |
227 // | 227 // |
228 // Returns the previous |enable| value. | 228 // Returns the previous |enable| value. |
229 static bool SetSandboxEnabledForTesting(bool enable); | 229 static bool SetSandboxEnabledForTesting(bool enable); |
230 | 230 |
231 // Set MotionData to return when setDeviceMotionListener is invoked. | 231 // Set MotionData to return when setDeviceMotionListener is invoked. |
232 static void SetMockDeviceMotionDataForTesting(const device::MotionData& data); | 232 static void SetMockDeviceMotionDataForTesting( |
| 233 const blink::WebDeviceMotionData& data); |
233 // Set OrientationData to return when setDeviceOrientationListener | 234 // Set OrientationData to return when setDeviceOrientationListener |
234 // is invoked. | 235 // is invoked. |
235 static void SetMockDeviceOrientationDataForTesting( | 236 static void SetMockDeviceOrientationDataForTesting( |
236 const device::OrientationData& data); | 237 const device::OrientationData& data); |
237 | 238 |
238 WebDatabaseObserverImpl* web_database_observer_impl() { | 239 WebDatabaseObserverImpl* web_database_observer_impl() { |
239 return web_database_observer_impl_.get(); | 240 return web_database_observer_impl_.get(); |
240 } | 241 } |
241 | 242 |
242 std::unique_ptr<blink::WebURLLoader> CreateURLLoader() override; | 243 std::unique_ptr<blink::WebURLLoader> CreateURLLoader() override; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; | 310 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; |
310 | 311 |
311 PossiblyAssociatedInterfacePtr<mojom::URLLoaderFactory> url_loader_factory_; | 312 PossiblyAssociatedInterfacePtr<mojom::URLLoaderFactory> url_loader_factory_; |
312 | 313 |
313 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 314 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
314 }; | 315 }; |
315 | 316 |
316 } // namespace content | 317 } // namespace content |
317 | 318 |
318 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 319 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |