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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 for (i = render_views.begin(); i != render_views.end(); ++i) { 1352 for (i = render_views.begin(); i != render_views.end(); ++i) {
1353 BrowserThread::PostTask( 1353 BrowserThread::PostTask(
1354 BrowserThread::UI, FROM_HERE, 1354 BrowserThread::UI, FROM_HERE,
1355 base::Bind(&TabSpecificContentSettings::IndexedDBAccessed, 1355 base::Bind(&TabSpecificContentSettings::IndexedDBAccessed,
1356 i->first, i->second, url, name, !allow)); 1356 i->first, i->second, url, name, !allow));
1357 } 1357 }
1358 1358
1359 return allow; 1359 return allow;
1360 } 1360 }
1361 1361
1362 net::URLRequestContext* 1362 net::CookieStore*
1363 ChromeContentBrowserClient::OverrideRequestContextForURL( 1363 ChromeContentBrowserClient::OverrideCookieStoreForURL(
1364 const GURL& url, content::ResourceContext* context) { 1364 const GURL& url, content::ResourceContext* context) {
1365 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 1365 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
1366 if (url.SchemeIs(extensions::kExtensionScheme)) { 1366 if (url.SchemeIs(extensions::kExtensionScheme)) {
1367 ProfileIOData* io_data = ProfileIOData::FromResourceContext(context); 1367 ProfileIOData* io_data = ProfileIOData::FromResourceContext(context);
1368 return io_data->extensions_request_context(); 1368 // TODO(ajwong): Does this leave a hole based on storage partition?
1369 return io_data->GetExtensionsCookieStore();
1369 } 1370 }
1370 1371
1371 return NULL; 1372 return NULL;
1372 } 1373 }
1373 1374
1374 QuotaPermissionContext* 1375 QuotaPermissionContext*
1375 ChromeContentBrowserClient::CreateQuotaPermissionContext() { 1376 ChromeContentBrowserClient::CreateQuotaPermissionContext() {
1376 return new ChromeQuotaPermissionContext(); 1377 return new ChromeQuotaPermissionContext();
1377 } 1378 }
1378 1379
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
2096 io_thread_application_locale_ = locale; 2097 io_thread_application_locale_ = locale;
2097 } 2098 }
2098 2099
2099 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( 2100 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread(
2100 const std::string& locale) { 2101 const std::string& locale) {
2101 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 2102 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
2102 io_thread_application_locale_ = locale; 2103 io_thread_application_locale_ = locale;
2103 } 2104 }
2104 2105
2105 } // namespace chrome 2106 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698