| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 content::RenderFrameHost* render_frame_host, | 36 content::RenderFrameHost* render_frame_host, |
| 37 const GURL& requesting_origin, | 37 const GURL& requesting_origin, |
| 38 bool user_gesture, | 38 bool user_gesture, |
| 39 const base::Callback< | 39 const base::Callback< |
| 40 void(const std::vector<blink::mojom::PermissionStatus>&)>& callback) | 40 void(const std::vector<blink::mojom::PermissionStatus>&)>& callback) |
| 41 override; | 41 override; |
| 42 void CancelPermissionRequest(int request_id) override; | 42 void CancelPermissionRequest(int request_id) override; |
| 43 void ResetPermission(content::PermissionType permission, | 43 void ResetPermission(content::PermissionType permission, |
| 44 const GURL& requesting_origin, | 44 const GURL& requesting_origin, |
| 45 const GURL& embedding_origin) override; | 45 const GURL& embedding_origin) override; |
| 46 blink::mojom::PermissionStatus GetPermissionStatus( | 46 blink::mojom::PermissionStatus GetPermissionStatusForFrame( |
| 47 content::PermissionType permission, | 47 content::PermissionType permission, |
| 48 const GURL& requesting_origin, | 48 content::RenderFrameHost* render_frame_host, |
| 49 const GURL& embedding_origin) override; | 49 const GURL& requesting_origin) override; |
| 50 blink::mojom::PermissionStatus GetPermissionStatusForWorker( |
| 51 content::PermissionType permission, |
| 52 const GURL& requesting_origin) override; |
| 50 int SubscribePermissionStatusChange( | 53 int SubscribePermissionStatusChange( |
| 51 content::PermissionType permission, | 54 content::PermissionType permission, |
| 52 const GURL& requesting_origin, | 55 const GURL& requesting_origin, |
| 53 const GURL& embedding_origin, | 56 const GURL& embedding_origin, |
| 54 const base::Callback<void(blink::mojom::PermissionStatus)>& callback) | 57 const base::Callback<void(blink::mojom::PermissionStatus)>& callback) |
| 55 override; | 58 override; |
| 56 void UnsubscribePermissionStatusChange(int subscription_id) override; | 59 void UnsubscribePermissionStatusChange(int subscription_id) override; |
| 57 | 60 |
| 58 protected: | 61 protected: |
| 59 void CancelPermissionRequests(); | 62 void CancelPermissionRequests(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 82 std::unique_ptr<LastRequestResultCache> result_cache_; | 85 std::unique_ptr<LastRequestResultCache> result_cache_; |
| 83 | 86 |
| 84 base::WeakPtrFactory<AwPermissionManager> weak_ptr_factory_; | 87 base::WeakPtrFactory<AwPermissionManager> weak_ptr_factory_; |
| 85 | 88 |
| 86 DISALLOW_COPY_AND_ASSIGN(AwPermissionManager); | 89 DISALLOW_COPY_AND_ASSIGN(AwPermissionManager); |
| 87 }; | 90 }; |
| 88 | 91 |
| 89 } // namespace android_webview | 92 } // namespace android_webview |
| 90 | 93 |
| 91 #endif // ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ | 94 #endif // ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ |
| OLD | NEW |