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" |
| 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, |
| 16 public content::ChooserPermissionManager { |
| 17 public: |
| 18 explicit ChooserPermissionManager(Profile* profile); |
| 19 ~ChooserPermissionManager() override; |
| 20 |
| 21 // content::ChooserPermissionManager: |
| 22 void GrantPermission(const GURL& requesting_origin, |
| 23 const GURL& embedding_origin, |
| 24 const std::string& id) override; |
| 25 void RevokePermission(const GURL& requesting_origin, |
| 26 const GURL& 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 |