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 CHROMECAST_BROWSER_CAST_PERMISSION_MANAGER_H_ | 5 #ifndef CHROMECAST_BROWSER_CAST_PERMISSION_MANAGER_H_ |
6 #define CHROMECAST_BROWSER_CAST_PERMISSION_MANAGER_H_ | 6 #define CHROMECAST_BROWSER_CAST_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 21 matching lines...) Expand all Loading... |
32 void ResetPermission(content::PermissionType permission, | 32 void ResetPermission(content::PermissionType permission, |
33 const GURL& requesting_origin, | 33 const GURL& requesting_origin, |
34 const GURL& embedding_origin) override; | 34 const GURL& embedding_origin) override; |
35 content::PermissionStatus GetPermissionStatus( | 35 content::PermissionStatus GetPermissionStatus( |
36 content::PermissionType permission, | 36 content::PermissionType permission, |
37 const GURL& requesting_origin, | 37 const GURL& requesting_origin, |
38 const GURL& embedding_origin) override; | 38 const GURL& embedding_origin) override; |
39 void RegisterPermissionUsage(content::PermissionType permission, | 39 void RegisterPermissionUsage(content::PermissionType permission, |
40 const GURL& requesting_origin, | 40 const GURL& requesting_origin, |
41 const GURL& embedding_origin) override; | 41 const GURL& embedding_origin) override; |
| 42 int SubscribePermissionStatusChange( |
| 43 content::PermissionType permission, |
| 44 const GURL& requesting_origin, |
| 45 const GURL& embedding_origin, |
| 46 const base::Callback<void(content::PermissionStatus)>& callback) override; |
| 47 void UnsubscribePermissionStatusChange(int subscription_id) override; |
42 | 48 |
43 private: | 49 private: |
44 DISALLOW_COPY_AND_ASSIGN(CastPermissionManager); | 50 DISALLOW_COPY_AND_ASSIGN(CastPermissionManager); |
45 }; | 51 }; |
46 | 52 |
47 } // namespace shell | 53 } // namespace shell |
48 } // namespace chromecast | 54 } // namespace chromecast |
49 | 55 |
50 #endif // CHROMECAST_BROWSER_CAST_PERMISSION_MANAGER_H_ | 56 #endif // CHROMECAST_BROWSER_CAST_PERMISSION_MANAGER_H_ |
OLD | NEW |