Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Side by Side Diff: content/renderer/renderer_blink_platform_impl.h

Issue 2415083002: Move Device Sensors client files from Blink to //device/sensors client lib (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 16 matching lines...) Expand all
27 27
28 namespace IPC { 28 namespace IPC {
29 class SyncMessageFilter; 29 class SyncMessageFilter;
30 } 30 }
31 31
32 namespace blink { 32 namespace blink {
33 namespace scheduler { 33 namespace scheduler {
34 class RendererScheduler; 34 class RendererScheduler;
35 } 35 }
36 class WebCanvasCaptureHandler; 36 class WebCanvasCaptureHandler;
37 class WebDeviceMotionData;
38 class WebDeviceOrientationData;
39 class WebGraphicsContext3DProvider; 37 class WebGraphicsContext3DProvider;
40 class WebMediaPlayer; 38 class WebMediaPlayer;
41 class WebMediaRecorderHandler; 39 class WebMediaRecorderHandler;
42 class WebMediaStream; 40 class WebMediaStream;
43 class WebSecurityOrigin; 41 class WebSecurityOrigin;
44 class WebServiceWorkerCacheStorage; 42 class WebServiceWorkerCacheStorage;
45 } 43 }
46 44
45 namespace device {
46 class MotionData;
47 class OrientationData;
48 }
49
47 namespace service_manager { 50 namespace service_manager {
48 class InterfaceProvider; 51 class InterfaceProvider;
49 } 52 }
50 53
51 namespace content { 54 namespace content {
52 class BlinkInterfaceProviderImpl; 55 class BlinkInterfaceProviderImpl;
53 class LocalStorageCachedAreas; 56 class LocalStorageCachedAreas;
54 class PlatformEventObserverBase; 57 class PlatformEventObserverBase;
55 class QuotaMessageFilter; 58 class QuotaMessageFilter;
56 class RendererClipboardDelegate; 59 class RendererClipboardDelegate;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // Tests that do not set up a full sandbox environment should call 213 // Tests that do not set up a full sandbox environment should call
211 // SetSandboxEnabledForTesting(false) _before_ creating any instances 214 // SetSandboxEnabledForTesting(false) _before_ creating any instances
212 // of this class, to ensure that we don't attempt to use sandbox-related 215 // of this class, to ensure that we don't attempt to use sandbox-related
213 // file descriptors or other resources. 216 // file descriptors or other resources.
214 // 217 //
215 // Returns the previous |enable| value. 218 // Returns the previous |enable| value.
216 static bool SetSandboxEnabledForTesting(bool enable); 219 static bool SetSandboxEnabledForTesting(bool enable);
217 220
218 // Set a double to return when setDeviceLightListener is invoked. 221 // Set a double to return when setDeviceLightListener is invoked.
219 static void SetMockDeviceLightDataForTesting(double data); 222 static void SetMockDeviceLightDataForTesting(double data);
220 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. 223 // Set MotionData to return when setDeviceMotionListener is invoked.
221 static void SetMockDeviceMotionDataForTesting( 224 static void SetMockDeviceMotionDataForTesting(const device::MotionData& data);
222 const blink::WebDeviceMotionData& data); 225 // Set OrientationData to return when setDeviceOrientationListener
223 // Set WebDeviceOrientationData to return when setDeviceOrientationListener
224 // is invoked. 226 // is invoked.
225 static void SetMockDeviceOrientationDataForTesting( 227 static void SetMockDeviceOrientationDataForTesting(
226 const blink::WebDeviceOrientationData& data); 228 const device::OrientationData& data);
227 229
228 WebDatabaseObserverImpl* web_database_observer_impl() { 230 WebDatabaseObserverImpl* web_database_observer_impl() {
229 return web_database_observer_impl_.get(); 231 return web_database_observer_impl_.get();
230 } 232 }
231 233
232 blink::WebURLLoader* createURLLoader() override; 234 blink::WebURLLoader* createURLLoader() override;
233 235
234 void requestPurgeMemory() override; 236 void requestPurgeMemory() override;
235 237
236 private: 238 private:
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; 300 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_;
299 301
300 mojom::URLLoaderFactoryAssociatedPtr url_loader_factory_; 302 mojom::URLLoaderFactoryAssociatedPtr url_loader_factory_;
301 303
302 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); 304 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);
303 }; 305 };
304 306
305 } // namespace content 307 } // namespace content
306 308
307 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 309 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698