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

Side by Side 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, 4 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_GENERIC_SENSOR_SENSOR_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_GENERIC_SENSOR_SENSOR_PERMISSION_CONTEXT_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/permissions/permission_context_base.h"
10
11 class SensorPermissionContext : public PermissionContextBase {
12 public:
13 explicit SensorPermissionContext(Profile* profile);
14
15 ~SensorPermissionContext() override;
16
17 private:
18 // PermissionContextBase:
19 ContentSetting GetPermissionStatusInternal(
20 content::RenderFrameHost* render_frame_host,
21 const GURL& requesting_origin,
22 const GURL& embedding_origin) const override;
23 bool IsRestrictedToSecureOrigins() const override;
24
25 DISALLOW_COPY_AND_ASSIGN(SensorPermissionContext);
26 };
27
28 #endif // CHROME_BROWSER_GENERIC_SENSOR_SENSOR_PERMISSION_CONTEXT_H_
OLDNEW
« 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