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

Side by Side Diff: third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h

Issue 2865263002: Move //device/generic_sensor to be part of the internal implementation of the Device Service. (Closed)
Patch Set: code rebase Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SensorProviderProxy_h 5 #ifndef SensorProviderProxy_h
6 #define SensorProviderProxy_h 6 #define SensorProviderProxy_h
7 7
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 #include "device/generic_sensor/public/interfaces/sensor.mojom-blink.h"
10 #include "device/generic_sensor/public/interfaces/sensor_provider.mojom-blink.h"
11 #include "platform/Supplementable.h" 9 #include "platform/Supplementable.h"
12 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "services/device/public/interfaces/sensor.mojom-blink.h"
12 #include "services/device/public/interfaces/sensor_provider.mojom-blink.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class SensorProxy; 16 class SensorProxy;
17 17
18 // This class wraps 'SensorProvider' mojo interface and it manages 18 // This class wraps 'SensorProvider' mojo interface and it manages
19 // 'SensorProxy' instances. 19 // 'SensorProxy' instances.
20 class SensorProviderProxy final 20 class SensorProviderProxy final
21 : public GarbageCollectedFinalized<SensorProviderProxy>, 21 : public GarbageCollectedFinalized<SensorProviderProxy>,
22 public Supplement<LocalFrame> { 22 public Supplement<LocalFrame> {
(...skipping 27 matching lines...) Expand all
50 50
51 using SensorsSet = HeapHashSet<WeakMember<SensorProxy>>; 51 using SensorsSet = HeapHashSet<WeakMember<SensorProxy>>;
52 SensorsSet sensor_proxies_; 52 SensorsSet sensor_proxies_;
53 53
54 device::mojom::blink::SensorProviderPtr sensor_provider_; 54 device::mojom::blink::SensorProviderPtr sensor_provider_;
55 }; 55 };
56 56
57 } // namespace blink 57 } // namespace blink
58 58
59 #endif // SensorProviderProxy_h 59 #endif // SensorProviderProxy_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/Sensor.cpp ('k') | third_party/WebKit/Source/modules/sensor/SensorProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698