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

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

Issue 2458453002: [sensors] Add Permission guard to the generic sensor apis.
Patch Set: Fix comments + rebase 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..1fe8f4673a68f6a086115aa4c3fef766a5562d12 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h
+++ b/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h
@@ -5,6 +5,7 @@
#ifndef SensorProviderProxy_h
#define SensorProviderProxy_h
+#include "core/dom/ExecutionContext.h"
#include "core/frame/LocalFrame.h"
#include "device/generic_sensor/public/interfaces/sensor.mojom-blink.h"
#include "device/generic_sensor/public/interfaces/sensor_provider.mojom-blink.h"
@@ -30,6 +31,7 @@ class SensorProviderProxy final
~SensorProviderProxy();
SensorProxy* createSensor(device::mojom::blink::SensorType,
+ ExecutionContext*,
std::unique_ptr<SensorReadingFactory>);
SensorProxy* getSensor(device::mojom::blink::SensorType);

Powered by Google App Engine
This is Rietveld 408576698