| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DELEGA
TE_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DELEGA
TE_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DELEGA
TE_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DELEGA
TE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 virtual void RequestPointerLockPermission( | 29 virtual void RequestPointerLockPermission( |
| 30 bool user_gesture, | 30 bool user_gesture, |
| 31 bool last_unlocked_by_target, | 31 bool last_unlocked_by_target, |
| 32 const base::Callback<void(bool)>& callback) {} | 32 const base::Callback<void(bool)>& callback) {} |
| 33 | 33 |
| 34 // Requests Geolocation Permission from the embedder. | 34 // Requests Geolocation Permission from the embedder. |
| 35 virtual void RequestGeolocationPermission( | 35 virtual void RequestGeolocationPermission( |
| 36 int bridge_id, | 36 int bridge_id, |
| 37 const GURL& requesting_frame, | 37 const GURL& requesting_frame, |
| 38 bool user_gesture, |
| 38 const base::Callback<void(bool)>& callback) {} | 39 const base::Callback<void(bool)>& callback) {} |
| 39 | 40 |
| 40 virtual void CancelGeolocationPermissionRequest(int bridge_id) {} | 41 virtual void CancelGeolocationPermissionRequest(int bridge_id) {} |
| 41 | 42 |
| 42 virtual void RequestFileSystemPermission( | 43 virtual void RequestFileSystemPermission( |
| 43 const GURL& url, | 44 const GURL& url, |
| 44 bool allowed_by_default, | 45 bool allowed_by_default, |
| 45 const base::Callback<void(bool)>& callback) {} | 46 const base::Callback<void(bool)>& callback) {} |
| 46 | 47 |
| 47 // Called when file system access is requested by the guest content using the | 48 // Called when file system access is requested by the guest content using the |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 86 |
| 86 private: | 87 private: |
| 87 WebViewPermissionHelper* const web_view_permission_helper_; | 88 WebViewPermissionHelper* const web_view_permission_helper_; |
| 88 | 89 |
| 89 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelperDelegate); | 90 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelperDelegate); |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 } // namespace extensions | 93 } // namespace extensions |
| 93 | 94 |
| 94 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DEL
EGATE_H_ | 95 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DEL
EGATE_H_ |
| OLD | NEW |