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

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: Rebase. 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/content_settings_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..38257762bbf7d1011d1815d29ad60c4c49672365 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 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 +100,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 +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);
};
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/content_settings_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698