Index: chrome/browser/guest_view/web_view/web_view_guest.h |
diff --git a/chrome/browser/guest_view/web_view/web_view_guest.h b/chrome/browser/guest_view/web_view/web_view_guest.h |
index b79f9ef6f6be740e403cf473a2050f515ca66d80..3da9f5ca029d7ed2068775131826e8c402ffc4e6 100644 |
--- a/chrome/browser/guest_view/web_view/web_view_guest.h |
+++ b/chrome/browser/guest_view/web_view/web_view_guest.h |
@@ -199,6 +199,14 @@ class WebViewGuest : public GuestView<WebViewGuest>, |
const base::Callback<void(bool)>& callback); |
void CancelGeolocationPermissionRequest(int bridge_id); |
+ // Called when file system access is requested by the guest content using the |
+ // HTML5 file system API in main thread, or a worker thread. |
+ // The request is plumbed through the <webview> permission request API. The |
+ // request will be: |
+ // - Allowed if the embedder explicitly allowed it. |
+ // - Denied if the embedder explicitly denied. |
+ // - Determined by the guest's content settings if the embedder does not |
+ // perform an explicit action. |
void RequestFileSystemPermission(const GURL& url, |
bool allowed_by_default, |
const base::Callback<void(bool)>& callback); |
@@ -244,39 +252,6 @@ class WebViewGuest : public GuestView<WebViewGuest>, |
return script_executor_.get(); |
} |
- // Called when file system access is requested by the guest content using the |
- // asynchronous HTML5 file system API. The request is plumbed through the |
- // <webview> permission request API. The request will be: |
- // - Allowed if the embedder explicitly allowed it. |
- // - Denied if the embedder explicitly denied. |
- // - Determined by the guest's content settings if the embedder does not |
- // perform an explicit action. |
- // If access was blocked due to the page's content settings, |
- // |blocked_by_policy| should be true, and this function should invoke |
- // OnContentBlocked. |
- static void FileSystemAccessedAsync(int render_process_id, |
- int render_frame_id, |
- int request_id, |
- const GURL& url, |
- bool blocked_by_policy); |
- |
- // Called when file system access is requested by the guest content using the |
- // synchronous HTML5 file system API in a worker thread or shared worker. The |
- // request is plumbed through the <webview> permission request API. The |
- // request will be: |
- // - Allowed if the embedder explicitly allowed it. |
- // - Denied if the embedder explicitly denied. |
- // - Determined by the guest's content settings if the embedder does not |
- // perform an explicit action. |
- // If access was blocked due to the page's content settings, |
- // |blocked_by_policy| should be true, and this function should invoke |
- // OnContentBlocked. |
- static void FileSystemAccessedSync(int render_process_id, |
- int render_frame_id, |
- const GURL& url, |
- bool blocked_by_policy, |
- IPC::Message* reply_msg); |
- |
private: |
virtual ~WebViewGuest(); |
@@ -331,18 +306,6 @@ class WebViewGuest : public GuestView<WebViewGuest>, |
bool allow, |
const std::string& user_input); |
- static void FileSystemAccessedAsyncResponse(int render_process_id, |
- int render_frame_id, |
- int request_id, |
- const GURL& url, |
- bool allowed); |
- |
- static void FileSystemAccessedSyncResponse(int render_process_id, |
- int render_frame_id, |
- const GURL& url, |
- IPC::Message* reply_msg, |
- bool allowed); |
- |
// WebContentsObserver implementation. |
virtual void DidCommitProvisionalLoadForFrame( |
content::RenderFrameHost* render_frame_host, |