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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 214 |
215 // Disables the WebSandboxSupport implementation for testing. | 215 // Disables the WebSandboxSupport implementation for testing. |
216 // Tests that do not set up a full sandbox environment should call | 216 // Tests that do not set up a full sandbox environment should call |
217 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 217 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
218 // of this class, to ensure that we don't attempt to use sandbox-related | 218 // of this class, to ensure that we don't attempt to use sandbox-related |
219 // file descriptors or other resources. | 219 // file descriptors or other resources. |
220 // | 220 // |
221 // Returns the previous |enable| value. | 221 // Returns the previous |enable| value. |
222 static bool SetSandboxEnabledForTesting(bool enable); | 222 static bool SetSandboxEnabledForTesting(bool enable); |
223 | 223 |
224 // Set a double to return when setDeviceLightListener is invoked. | |
225 static void SetMockDeviceLightDataForTesting(double data); | |
226 // Set MotionData to return when setDeviceMotionListener is invoked. | 224 // Set MotionData to return when setDeviceMotionListener is invoked. |
227 static void SetMockDeviceMotionDataForTesting(const device::MotionData& data); | 225 static void SetMockDeviceMotionDataForTesting(const device::MotionData& data); |
228 // Set OrientationData to return when setDeviceOrientationListener | 226 // Set OrientationData to return when setDeviceOrientationListener |
229 // is invoked. | 227 // is invoked. |
230 static void SetMockDeviceOrientationDataForTesting( | 228 static void SetMockDeviceOrientationDataForTesting( |
231 const device::OrientationData& data); | 229 const device::OrientationData& data); |
232 | 230 |
233 WebDatabaseObserverImpl* web_database_observer_impl() { | 231 WebDatabaseObserverImpl* web_database_observer_impl() { |
234 return web_database_observer_impl_.get(); | 232 return web_database_observer_impl_.get(); |
235 } | 233 } |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 | 305 |
308 // Only used when network service is enabled. | 306 // Only used when network service is enabled. |
309 mojom::URLLoaderFactoryPtr network_service_url_loader_factory_; | 307 mojom::URLLoaderFactoryPtr network_service_url_loader_factory_; |
310 | 308 |
311 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 309 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
312 }; | 310 }; |
313 | 311 |
314 } // namespace content | 312 } // namespace content |
315 | 313 |
316 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 314 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |