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

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: android webview init fix merged in. Created 7 years, 3 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 #include "chromeos/chromeos_constants.h" 109 #include "chromeos/chromeos_constants.h"
110 #include "components/nacl/common/nacl_process_type.h" 110 #include "components/nacl/common/nacl_process_type.h"
111 #include "components/user_prefs/pref_registry_syncable.h" 111 #include "components/user_prefs/pref_registry_syncable.h"
112 #include "content/public/browser/browser_child_process_host.h" 112 #include "content/public/browser/browser_child_process_host.h"
113 #include "content/public/browser/browser_main_parts.h" 113 #include "content/public/browser/browser_main_parts.h"
114 #include "content/public/browser/browser_ppapi_host.h" 114 #include "content/public/browser/browser_ppapi_host.h"
115 #include "content/public/browser/browser_thread.h" 115 #include "content/public/browser/browser_thread.h"
116 #include "content/public/browser/browser_url_handler.h" 116 #include "content/public/browser/browser_url_handler.h"
117 #include "content/public/browser/child_process_data.h" 117 #include "content/public/browser/child_process_data.h"
118 #include "content/public/browser/child_process_security_policy.h" 118 #include "content/public/browser/child_process_security_policy.h"
119 #include "content/public/browser/cookie_store_factory.h"
119 #include "content/public/browser/render_process_host.h" 120 #include "content/public/browser/render_process_host.h"
120 #include "content/public/browser/render_view_host.h" 121 #include "content/public/browser/render_view_host.h"
121 #include "content/public/browser/resource_context.h" 122 #include "content/public/browser/resource_context.h"
122 #include "content/public/browser/site_instance.h" 123 #include "content/public/browser/site_instance.h"
123 #include "content/public/browser/web_contents.h" 124 #include "content/public/browser/web_contents.h"
124 #include "content/public/browser/web_contents_view.h" 125 #include "content/public/browser/web_contents_view.h"
125 #include "content/public/common/child_process_host.h" 126 #include "content/public/common/child_process_host.h"
127 #include "content/public/common/content_constants.h"
126 #include "content/public/common/content_descriptors.h" 128 #include "content/public/common/content_descriptors.h"
127 #include "extensions/browser/view_type_utils.h" 129 #include "extensions/browser/view_type_utils.h"
128 #include "extensions/common/constants.h" 130 #include "extensions/common/constants.h"
129 #include "extensions/common/switches.h" 131 #include "extensions/common/switches.h"
130 #include "grit/generated_resources.h" 132 #include "grit/generated_resources.h"
131 #include "grit/ui_resources.h" 133 #include "grit/ui_resources.h"
132 #include "net/base/escape.h" 134 #include "net/base/escape.h"
133 #include "net/base/mime_util.h" 135 #include "net/base/mime_util.h"
134 #include "net/cookies/canonical_cookie.h" 136 #include "net/cookies/canonical_cookie.h"
135 #include "net/cookies/cookie_options.h" 137 #include "net/cookies/cookie_options.h"
138 #include "net/cookies/cookie_store.h"
136 #include "net/ssl/ssl_cert_request_info.h" 139 #include "net/ssl/ssl_cert_request_info.h"
137 #include "ppapi/host/ppapi_host.h" 140 #include "ppapi/host/ppapi_host.h"
138 #include "ui/base/l10n/l10n_util.h" 141 #include "ui/base/l10n/l10n_util.h"
139 #include "ui/base/resource/resource_bundle.h" 142 #include "ui/base/resource/resource_bundle.h"
140 #include "ui/message_center/message_center_util.h" 143 #include "ui/message_center/message_center_util.h"
141 #include "webkit/browser/fileapi/external_mount_points.h" 144 #include "webkit/browser/fileapi/external_mount_points.h"
142 #include "webkit/common/webpreferences.h" 145 #include "webkit/common/webpreferences.h"
143 146
144 #if defined(OS_WIN) 147 #if defined(OS_WIN)
145 #include "chrome/browser/chrome_browser_main_win.h" 148 #include "chrome/browser/chrome_browser_main_win.h"
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1643 for (i = render_views.begin(); i != render_views.end(); ++i) { 1646 for (i = render_views.begin(); i != render_views.end(); ++i) {
1644 BrowserThread::PostTask( 1647 BrowserThread::PostTask(
1645 BrowserThread::UI, FROM_HERE, 1648 BrowserThread::UI, FROM_HERE,
1646 base::Bind(&TabSpecificContentSettings::IndexedDBAccessed, 1649 base::Bind(&TabSpecificContentSettings::IndexedDBAccessed,
1647 i->first, i->second, url, name, !allow)); 1650 i->first, i->second, url, name, !allow));
1648 } 1651 }
1649 1652
1650 return allow; 1653 return allow;
1651 } 1654 }
1652 1655
1653 net::URLRequestContext*
1654 ChromeContentBrowserClient::OverrideRequestContextForURL(
1655 const GURL& url, content::ResourceContext* context) {
1656 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
1657 if (url.SchemeIs(extensions::kExtensionScheme)) {
1658 ProfileIOData* io_data = ProfileIOData::FromResourceContext(context);
1659 return io_data->extensions_request_context();
1660 }
1661
1662 return NULL;
1663 }
1664
1665 QuotaPermissionContext* 1656 QuotaPermissionContext*
1666 ChromeContentBrowserClient::CreateQuotaPermissionContext() { 1657 ChromeContentBrowserClient::CreateQuotaPermissionContext() {
1667 return new ChromeQuotaPermissionContext(); 1658 return new ChromeQuotaPermissionContext();
1668 } 1659 }
1669 1660
1670 void ChromeContentBrowserClient::AllowCertificateError( 1661 void ChromeContentBrowserClient::AllowCertificateError(
1671 int render_process_id, 1662 int render_process_id,
1672 int render_view_id, 1663 int render_view_id,
1673 int cert_error, 1664 int cert_error,
1674 const net::SSLInfo& ssl_info, 1665 const net::SSLInfo& ssl_info,
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
2517 #if defined(USE_NSS) 2508 #if defined(USE_NSS)
2518 crypto::CryptoModuleBlockingPasswordDelegate* 2509 crypto::CryptoModuleBlockingPasswordDelegate*
2519 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 2510 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
2520 const GURL& url) { 2511 const GURL& url) {
2521 return chrome::NewCryptoModuleBlockingDialogDelegate( 2512 return chrome::NewCryptoModuleBlockingDialogDelegate(
2522 chrome::kCryptoModulePasswordKeygen, url.host()); 2513 chrome::kCryptoModulePasswordKeygen, url.host());
2523 } 2514 }
2524 #endif 2515 #endif
2525 2516
2526 } // namespace chrome 2517 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/diagnostics/sqlite_diagnostics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698