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

Unified Diff: third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h

Issue 2503853002: [Sensors] Improvements in fetching reading for sensors with continuous reporting mode (Closed)
Patch Set: Comments from Tim Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h
diff --git a/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h b/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h
index fc89f5407584eaa57d837ad5ab1825b271abdf7b..f328e7c378232d3416dce12d29cbaf951ef1eced 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h
+++ b/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h
@@ -13,6 +13,7 @@
namespace blink {
+class Page;
class SensorProxy;
class SensorReadingFactory;
@@ -29,10 +30,11 @@ class SensorProviderProxy final
~SensorProviderProxy();
- SensorProxy* createSensor(device::mojom::blink::SensorType,
- std::unique_ptr<SensorReadingFactory>);
+ SensorProxy* createSensorProxy(device::mojom::blink::SensorType,
+ Page*,
+ std::unique_ptr<SensorReadingFactory>);
- SensorProxy* getSensor(device::mojom::blink::SensorType);
+ SensorProxy* getSensorProxy(device::mojom::blink::SensorType);
DECLARE_VIRTUAL_TRACE();
@@ -49,7 +51,7 @@ class SensorProviderProxy final
void onSensorProviderConnectionError();
using SensorsSet = HeapHashSet<WeakMember<SensorProxy>>;
- SensorsSet m_sensors;
+ SensorsSet m_sensorProxies;
device::mojom::blink::SensorProviderPtr m_sensorProvider;
};

Powered by Google App Engine
This is Rietveld 408576698