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

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: modified ChooserPermissionManager to take url::Origin as parameter 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
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 "base/memory/weak_ptr.h"
Jeffrey Yasskin 2016/01/21 00:32:30 You're not using this #include.
juncai 2016/01/25 18:53:32 Done.
10 #include "components/keyed_service/core/keyed_service.h"
11 #include "content/public/browser/chooser_permission_manager.h"
12
13 class Profile;
14
15 class ChooserPermissionManager : public KeyedService,
Jeffrey Yasskin 2016/01/21 00:32:30 I believe we generally call this class "ChromeChoo
juncai 2016/01/25 18:53:31 Yes, :).
16 public content::ChooserPermissionManager {
17 public:
18 explicit ChooserPermissionManager(Profile* profile);
19 ~ChooserPermissionManager() override;
20
21 // content::ChooserPermissionManager:
22 void GrantPermission(const url::Origin& requesting_origin,
23 const url::Origin& embedding_origin,
24 const std::string& id) override;
25 void RevokePermission(const url::Origin& requesting_origin,
26 const url::Origin& embedding_origin,
27 const std::string& id) override;
28
29 private:
30 Profile* profile_;
31
32 DISALLOW_COPY_AND_ASSIGN(ChooserPermissionManager);
33 };
34
35 #endif // CHROME_BROWSER_PERMISSIONS_CHOOSER_PERMISSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698