OLD | NEW |
---|---|
(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_ | |
OLD | NEW |