Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4151)

Unified Diff: chrome/renderer/content_settings_observer.h

Issue 273513005: Avoid sync IPCs for FileSystem API [chromium] (2/4) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a bug Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..6d318ef0c193f2aede6c6fdf89e44615195c3cc8 100644
--- a/chrome/renderer/content_settings_observer.h
+++ b/chrome/renderer/content_settings_observer.h
@@ -53,6 +53,8 @@ class ContentSettingsObserver
const blink::WebString& display_name,
unsigned long estimated_size);
virtual bool allowFileSystem();
+ virtual void requestFileSystemAccess(
+ 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 +100,7 @@ class ContentSettingsObserver
void OnSetAllowDisplayingInsecureContent(bool allow);
void OnSetAllowRunningInsecureContent(bool allow);
void OnReloadFrame();
+ void OnRequestFileSystemAccessResponse(int request_id, bool allowed);
// Resets the |content_blocked_| array.
void ClearBlockedContentSettings();
@@ -141,6 +144,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);
};

Powered by Google App Engine
This is Rietveld 408576698