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

Side by Side Diff: chrome/browser/permissions/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, 10 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_PERMISSIONS_CHOOSER_PERMISSION_MANAGER_H_
6 #define CHROME_BROWSER_PERMISSIONS_CHOOSER_PERMISSION_MANAGER_H_
7
8 #include "base/macros.h"
9 #include "components/keyed_service/core/keyed_service.h"
10 #include "content/public/browser/chooser_permission_manager.h"
11
12 class Profile;
13
14 class ChooserPermissionManager : public KeyedService,
15 public content::ChooserPermissionManager {
16 public:
17 explicit ChooserPermissionManager(Profile* profile);
18 ~ChooserPermissionManager() override;
19
20 // content::ChooserPermissionManager:
21 void GrantPermission(content::PermissionType permission_type,
22 const url::Origin& requesting_origin,
23 const url::Origin& embedding_origin,
24 scoped_ptr<base::DictionaryValue> object) override;
25 void RevokePermission(content::PermissionType permission_type,
26 const url::Origin& requesting_origin,
27 const url::Origin& embedding_origin,
28 const base::DictionaryValue& object) override;
29
30 private:
31 Profile* profile_;
32
33 DISALLOW_COPY_AND_ASSIGN(ChooserPermissionManager);
34 };
35
36 #endif // CHROME_BROWSER_PERMISSIONS_CHOOSER_PERMISSION_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/permissions/chooser_context.cc ('k') | chrome/browser/permissions/chooser_permission_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698