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

Side by Side Diff: content/public/browser/chooser_permission_manager.h

Issue 1560263002: Store Bluetooth permissions in website settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added code to check session->chooser_permission_manager Created 4 years, 11 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
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/permission_type.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_PUBLIC_BROWSER_CHOOSER_PERMISSION_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_CHOOSER_PERMISSION_MANAGER_H_
7
8 #include <string>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "content/common/content_export.h"
12
13 namespace base {
14 class DictionaryValue;
15 }
16
17 namespace url {
18 class Origin;
19 }
20
21 namespace content {
22 enum class PermissionType;
23
24 class CONTENT_EXPORT ChooserPermissionManager {
25 public:
26 virtual ~ChooserPermissionManager() = default;
27
28 virtual void GrantPermission(content::PermissionType permission_type,
29 const url::Origin& requesting_origin,
30 const url::Origin& embedding_origin,
31 scoped_ptr<base::DictionaryValue> object) = 0;
32
33 virtual void RevokePermission(content::PermissionType permission_type,
34 const url::Origin& requesting_origin,
35 const url::Origin& embedding_origin,
36 const base::DictionaryValue& object) = 0;
37 };
38 }
39
40 #endif // CONTENT_PUBLIC_BROWSER_CHOOSER_PERMISSION_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/permission_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698