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

Unified Diff: chrome/browser/renderer_host/chrome_render_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
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/chrome_render_message_filter.cc
===================================================================
--- chrome/browser/renderer_host/chrome_render_message_filter.cc (revision 85048)
+++ chrome/browser/renderer_host/chrome_render_message_filter.cc (working copy)
@@ -359,6 +359,20 @@
render_process_id_, render_view_id, url, type, !*allowed));
}
+void ChromeRenderMessageFilter::OnAllowFileSystem(int render_view_id,
+ const GURL& url,
+ bool* allowed) {
+
+ // TODO(kinuko): Need to notify the UI thread to indicate that
+ // there's a blocked content. See the above for inspiration.
+ ContentSetting setting = host_content_settings_map_->GetContentSetting(
+ url, CONTENT_SETTINGS_TYPE_COOKIES, "");
+ DCHECK((setting == CONTENT_SETTING_ALLOW) ||
+ (setting == CONTENT_SETTING_BLOCK) ||
+ (setting == CONTENT_SETTING_SESSION_ONLY));
+ *allowed = setting != CONTENT_SETTING_BLOCK;
+}
+
void ChromeRenderMessageFilter::OnAllowIndexedDB(int render_view_id,
const string16& origin_url,
const string16& name,
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698