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 CONTENT_PUBLIC_BROWSER_CHOOSER_PERMISSION_MANAGER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_CHOOSER_PERMISSION_MANAGER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "content/common/content_export.h" |
| 11 |
| 12 class GURL; |
| 13 |
| 14 namespace content { |
| 15 |
| 16 class CONTENT_EXPORT ChooserPermissionManager { |
| 17 public: |
| 18 virtual ~ChooserPermissionManager() = default; |
| 19 |
| 20 virtual void GrantPermission(const GURL& requesting_origin, |
| 21 const GURL& embedding_origin, |
| 22 const std::string& id) = 0; |
| 23 |
| 24 virtual void RevokePermission(const GURL& requesting_origin, |
| 25 const GURL& embedding_origin, |
| 26 const std::string& id) = 0; |
| 27 }; |
| 28 } |
| 29 |
| 30 #endif // CONTENT_PUBLIC_BROWSER_CHOOSER_PERMISSION_MANAGER_H_ |
OLD | NEW |