OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "content/public/browser/permission_manager.h" | 10 #include "content/public/browser/permission_manager.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 void ResetPermission(content::PermissionType permission, | 31 void ResetPermission(content::PermissionType permission, |
32 const GURL& requesting_origin, | 32 const GURL& requesting_origin, |
33 const GURL& embedding_origin) override; | 33 const GURL& embedding_origin) override; |
34 content::PermissionStatus GetPermissionStatus( | 34 content::PermissionStatus GetPermissionStatus( |
35 content::PermissionType permission, | 35 content::PermissionType permission, |
36 const GURL& requesting_origin, | 36 const GURL& requesting_origin, |
37 const GURL& embedding_origin) override; | 37 const GURL& embedding_origin) override; |
38 void RegisterPermissionUsage(content::PermissionType permission, | 38 void RegisterPermissionUsage(content::PermissionType permission, |
39 const GURL& requesting_origin, | 39 const GURL& requesting_origin, |
40 const GURL& embedding_origin) override; | 40 const GURL& embedding_origin) override; |
| 41 int SubscribePermissionStatusChange( |
| 42 content::PermissionType permission, |
| 43 const GURL& requesting_origin, |
| 44 const GURL& embedding_origin, |
| 45 const base::Callback<void(content::PermissionStatus)>& callback) override; |
| 46 void UnsubscribePermissionStatusChange(int subscription_id) override; |
41 | 47 |
42 private: | 48 private: |
43 DISALLOW_COPY_AND_ASSIGN(AwPermissionManager); | 49 DISALLOW_COPY_AND_ASSIGN(AwPermissionManager); |
44 }; | 50 }; |
45 | 51 |
46 } // namespace android_webview | 52 } // namespace android_webview |
47 | 53 |
48 #endif // ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ | 54 #endif // ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ |
OLD | NEW |