Index: chrome/renderer/content_settings_observer.h |
diff --git a/chrome/renderer/content_settings_observer.h b/chrome/renderer/content_settings_observer.h |
index 4ab862328aebd4b589379efc8174ce1ae97b90c5..b76927e25f0691a3251c96ed0703f4842fd25e23 100644 |
--- a/chrome/renderer/content_settings_observer.h |
+++ b/chrome/renderer/content_settings_observer.h |
@@ -53,6 +53,9 @@ class ContentSettingsObserver |
const blink::WebString& display_name, |
unsigned long estimated_size); |
virtual bool allowFileSystem(); |
+ virtual bool requestFileSystemAccessSync(); |
+ virtual void requestFileSystemAccessAsync( |
+ const blink::WebPermissionCallbacks& callbacks); |
virtual bool allowImage(bool enabled_per_settings, |
const blink::WebURL& image_url); |
virtual bool allowIndexedDB(const blink::WebString& name, |
@@ -98,6 +101,7 @@ class ContentSettingsObserver |
void OnSetAllowDisplayingInsecureContent(bool allow); |
void OnSetAllowRunningInsecureContent(bool allow); |
void OnReloadFrame(); |
+ void OnRequestFileSystemAccessAsyncResponse(int request_id, bool allowed); |
// Resets the |content_blocked_| array. |
void ClearBlockedContentSettings(); |
@@ -141,6 +145,10 @@ class ContentSettingsObserver |
bool is_interstitial_page_; |
bool npapi_plugins_blocked_; |
+ int current_request_id_; |
+ typedef std::map<int, blink::WebPermissionCallbacks> PermissionRequestMap; |
+ PermissionRequestMap permission_requests_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); |
}; |