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

Unified Diff: chrome/browser/generic_sensor/sensor_permission_context.h

Issue 2791623004: [sensors][permission] Add new permission types in permission module. (Closed)
Patch Set: Rebase + add blank line in ONWERS file. Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/generic_sensor/OWNERS ('k') | chrome/browser/generic_sensor/sensor_permission_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/generic_sensor/sensor_permission_context.h
diff --git a/chrome/browser/generic_sensor/sensor_permission_context.h b/chrome/browser/generic_sensor/sensor_permission_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..cdbf6ac2a585e2aa52b7e67190f0a7e653def438
--- /dev/null
+++ b/chrome/browser/generic_sensor/sensor_permission_context.h
@@ -0,0 +1,28 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_GENERIC_SENSOR_SENSOR_PERMISSION_CONTEXT_H_
+#define CHROME_BROWSER_GENERIC_SENSOR_SENSOR_PERMISSION_CONTEXT_H_
+
+#include "base/macros.h"
+#include "chrome/browser/permissions/permission_context_base.h"
+
+class SensorPermissionContext : public PermissionContextBase {
+ public:
+ explicit SensorPermissionContext(Profile* profile);
+
+ ~SensorPermissionContext() override;
+
+ private:
+ // PermissionContextBase:
+ ContentSetting GetPermissionStatusInternal(
+ content::RenderFrameHost* render_frame_host,
+ const GURL& requesting_origin,
+ const GURL& embedding_origin) const override;
+ bool IsRestrictedToSecureOrigins() const override;
+
+ DISALLOW_COPY_AND_ASSIGN(SensorPermissionContext);
+};
+
+#endif // CHROME_BROWSER_GENERIC_SENSOR_SENSOR_PERMISSION_CONTEXT_H_
« no previous file with comments | « chrome/browser/generic_sensor/OWNERS ('k') | chrome/browser/generic_sensor/sensor_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698