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