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

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

Issue 2458453002: [sensors] Add Permission guard to the generic sensor apis.
Patch Set: Remove resetPermission + 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 f328e7c378232d3416dce12d29cbaf951ef1eced..dbbc8536a131dff60e05d44bafc88c7881cf462a 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h
+++ b/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h
@@ -10,10 +10,12 @@
#include "device/generic_sensor/public/interfaces/sensor_provider.mojom-blink.h"
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
+#include "public/platform/modules/permissions/permission.mojom-blink.h"
namespace blink {
class Page;
+class SecurityOrigin;
class SensorProxy;
class SensorReadingFactory;
@@ -32,6 +34,7 @@ class SensorProviderProxy final
SensorProxy* createSensorProxy(device::mojom::blink::SensorType,
Page*,
+ RefPtr<SecurityOrigin>,
std::unique_ptr<SensorReadingFactory>);
SensorProxy* getSensorProxy(device::mojom::blink::SensorType);
@@ -54,6 +57,7 @@ class SensorProviderProxy final
SensorsSet m_sensorProxies;
device::mojom::blink::SensorProviderPtr m_sensorProvider;
+ mojom::blink::PermissionServicePtr m_permissionService;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698