Chromium Code Reviews| Index: chrome/browser/chrome_content_browser_client.cc |
| diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
| index 2bcd9b9a874343d7e639d10bf2ae1089bffb4b47..3e0c66ad425ecfef611132aa260de0aa492656f9 100644 |
| --- a/chrome/browser/chrome_content_browser_client.cc |
| +++ b/chrome/browser/chrome_content_browser_client.cc |
| @@ -950,6 +950,28 @@ bool ChromeContentBrowserClient::AllowWorkerFileSystem( |
| return allow; |
| } |
| +bool ChromeContentBrowserClient::AllowWorkerIndexedDB( |
| + const GURL& url, |
| + const string16& name, |
| + content::ResourceContext* context, |
| + const std::vector<std::pair<int, int> >& render_views) { |
| + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| + ProfileIOData* io_data = ProfileIOData::FromResourceContext(context); |
| + CookieSettings* cookie_settings = io_data->GetCookieSettings(); |
| + bool allow = cookie_settings->IsSettingCookieAllowed(url, url); |
| + |
| + // Record access to file system for potential display in UI. |
|
michaeln
2012/03/01 20:46:08
comment should say "indexed db"
dgrogan
2012/03/02 00:41:11
Done.
|
| + std::vector<std::pair<int, int> >::const_iterator i; |
| + for (i = render_views.begin(); i != render_views.end(); ++i) { |
| + BrowserThread::PostTask( |
| + BrowserThread::UI, FROM_HERE, |
| + base::Bind(&TabSpecificContentSettings::IndexedDBAccessed, |
| + i->first, i->second, url, name, !allow)); |
| + } |
| + |
| + return allow; |
| +} |
| + |
| net::URLRequestContext* |
| ChromeContentBrowserClient::OverrideRequestContextForURL( |
| const GURL& url, content::ResourceContext* context) { |