| 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,
|
|
|