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

Side by Side Diff: chrome/browser/sensor/sensor_permission_context.h

Issue 2458453002: [sensors] Add Permission guard to the generic sensor apis.
Patch Set: rebase + blink reformat Created 3 years, 8 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 2016 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_SENSOR_SENSOR_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_SENSOR_SENSOR_PERMISSION_CONTEXT_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/permissions/permission_context_base.h"
10
11 class GURL;
12 class PermissionRequestID;
13
14 class SensorPermissionContext : public PermissionContextBase {
15 public:
16 explicit SensorPermissionContext(Profile* profile);
17 ~SensorPermissionContext() override;
18
19 private:
20 // PermissionContextBase:
21 void UpdateTabContext(const PermissionRequestID& id,
22 const GURL& requesting_frame,
23 bool allowed) override;
24 bool IsRestrictedToSecureOrigins() const override;
25
26 DISALLOW_COPY_AND_ASSIGN(SensorPermissionContext);
27 };
28
29 #endif // CHROME_BROWSER_SENSOR_SENSOR_PERMISSION_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/permission_reporter.cc ('k') | chrome/browser/sensor/sensor_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698