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

Unified Diff: chrome/browser/chrome_worker_message_filter.cc

Issue 7012007: Chrome side of having the WebKit FileSystem API use WebPermissionClient for checking if using fil... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/browser/chrome_worker_message_filter.cc
===================================================================
--- chrome/browser/chrome_worker_message_filter.cc (revision 85048)
+++ chrome/browser/chrome_worker_message_filter.cc (working copy)
@@ -23,6 +23,7 @@
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(ChromeWorkerMessageFilter, message)
IPC_MESSAGE_HANDLER(WorkerProcessHostMsg_AllowDatabase, OnAllowDatabase)
+ IPC_MESSAGE_HANDLER(WorkerProcessHostMsg_AllowFileSystem, OnAllowFileSystem)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -65,3 +66,14 @@
break;
}
}
+
+void ChromeWorkerMessageFilter::OnAllowFileSystem(int worker_route_id,
+ const GURL& url,
+ bool* result) {
+ // TODO(kinuko): Need to notify the UI thread to indicate that
+ // there's a blocked content. See the above for inspiration.
+ ContentSetting content_setting =
+ host_content_settings_map_->GetContentSetting(
+ url, CONTENT_SETTINGS_TYPE_COOKIES, "");
+ *result = content_setting != CONTENT_SETTING_BLOCK;
+}
« no previous file with comments | « chrome/browser/chrome_worker_message_filter.h ('k') | chrome/browser/renderer_host/chrome_render_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698