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 f7b6d2ba0a7ee606a241e1cb30202a32031a3d32..bfab62304b3c8d9358279e0c365b369f89532b2c 100644 |
--- a/chrome/browser/guest_view/web_view/web_view_guest.h |
+++ b/chrome/browser/guest_view/web_view/web_view_guest.h |
@@ -16,6 +16,7 @@ |
#include "chrome/common/extensions/api/webview.h" |
#include "content/public/browser/javascript_dialog_manager.h" |
#include "content/public/browser/notification_registrar.h" |
+#include "content/public/browser/render_frame_host.h" |
#include "content/public/browser/web_contents_observer.h" |
#include "third_party/WebKit/public/web/WebFindOptions.h" |
@@ -182,6 +183,15 @@ class WebViewGuest : public GuestView<WebViewGuest>, |
void CancelGeolocationPermissionRequest(int bridge_id); |
+ void RequestFileSystemPermission(const GURL& url, |
+ bool allowed_by_default, |
+ const base::Callback<void(bool)>& callback); |
+ |
+ void OnWebViewFileSystemPermissionResponse( |
Fady Samuel
2014/05/30 18:26:13
This should actually be private. I misplaced these
Xi Han
2014/05/30 19:35:30
Move all of them to private.
|
+ const base::Callback<void(bool)>& callback, |
+ bool allow, |
+ const std::string& user_input); |
+ |
void OnWebViewMediaPermissionResponse( |
const content::MediaStreamRequest& request, |
const content::MediaResponseCallback& callback, |
@@ -243,6 +253,18 @@ class WebViewGuest : public GuestView<WebViewGuest>, |
return script_executor_.get(); |
} |
+ static void FileSystemAccessedAsync(int render_process_id, |
Fady Samuel
2014/05/30 18:26:13
Description of what this is and what it does.
Xi Han
2014/05/30 19:35:30
Done.
|
+ int render_frame_id, |
+ int request_id, |
+ const GURL& url, |
+ bool blocked_by_policy); |
+ |
+ static void FileSystemAccessedSync(int render_process_id, |
Fady Samuel
2014/05/30 18:26:13
Description of what this is and what it does.
Xi Han
2014/05/30 19:35:30
Done.
|
+ int render_frame_id, |
+ const GURL& url, |
+ IPC::Message* reply_msg, |
+ bool blocked_by_policy); |
+ |
private: |
virtual ~WebViewGuest(); |
@@ -265,6 +287,18 @@ class WebViewGuest : public GuestView<WebViewGuest>, |
static scoped_ptr<base::ListValue> MenuModelToValue( |
const ui::SimpleMenuModel& menu_model); |
+ 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( |
int64 frame_id, |