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

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: compile gdi. Created 7 years, 4 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 "components/nacl/common/nacl_process_type.h" 109 #include "components/nacl/common/nacl_process_type.h"
110 #include "components/user_prefs/pref_registry_syncable.h" 110 #include "components/user_prefs/pref_registry_syncable.h"
111 #include "content/public/browser/browser_child_process_host.h" 111 #include "content/public/browser/browser_child_process_host.h"
112 #include "content/public/browser/browser_main_parts.h" 112 #include "content/public/browser/browser_main_parts.h"
113 #include "content/public/browser/browser_ppapi_host.h" 113 #include "content/public/browser/browser_ppapi_host.h"
114 #include "content/public/browser/browser_thread.h" 114 #include "content/public/browser/browser_thread.h"
115 #include "content/public/browser/browser_url_handler.h" 115 #include "content/public/browser/browser_url_handler.h"
116 #include "content/public/browser/child_process_data.h" 116 #include "content/public/browser/child_process_data.h"
117 #include "content/public/browser/child_process_security_policy.h" 117 #include "content/public/browser/child_process_security_policy.h"
118 #include "content/public/browser/compositor_util.h" 118 #include "content/public/browser/compositor_util.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 #include "webkit/plugins/plugin_switches.h" 146 #include "webkit/plugins/plugin_switches.h"
144 147
145 #if defined(OS_WIN) 148 #if defined(OS_WIN)
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1671 for (i = render_views.begin(); i != render_views.end(); ++i) { 1674 for (i = render_views.begin(); i != render_views.end(); ++i) {
1672 BrowserThread::PostTask( 1675 BrowserThread::PostTask(
1673 BrowserThread::UI, FROM_HERE, 1676 BrowserThread::UI, FROM_HERE,
1674 base::Bind(&TabSpecificContentSettings::IndexedDBAccessed, 1677 base::Bind(&TabSpecificContentSettings::IndexedDBAccessed,
1675 i->first, i->second, url, name, !allow)); 1678 i->first, i->second, url, name, !allow));
1676 } 1679 }
1677 1680
1678 return allow; 1681 return allow;
1679 } 1682 }
1680 1683
1681 net::URLRequestContext*
1682 ChromeContentBrowserClient::OverrideRequestContextForURL(
1683 const GURL& url, content::ResourceContext* context) {
1684 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
1685 if (url.SchemeIs(extensions::kExtensionScheme)) {
1686 ProfileIOData* io_data = ProfileIOData::FromResourceContext(context);
1687 return io_data->extensions_request_context();
1688 }
1689
1690 return NULL;
1691 }
1692
1693 QuotaPermissionContext* 1684 QuotaPermissionContext*
1694 ChromeContentBrowserClient::CreateQuotaPermissionContext() { 1685 ChromeContentBrowserClient::CreateQuotaPermissionContext() {
1695 return new ChromeQuotaPermissionContext(); 1686 return new ChromeQuotaPermissionContext();
1696 } 1687 }
1697 1688
1698 void ChromeContentBrowserClient::AllowCertificateError( 1689 void ChromeContentBrowserClient::AllowCertificateError(
1699 int render_process_id, 1690 int render_process_id,
1700 int render_view_id, 1691 int render_view_id,
1701 int cert_error, 1692 int cert_error,
1702 const net::SSLInfo& ssl_info, 1693 const net::SSLInfo& ssl_info,
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
2553 #if defined(USE_NSS) 2544 #if defined(USE_NSS)
2554 crypto::CryptoModuleBlockingPasswordDelegate* 2545 crypto::CryptoModuleBlockingPasswordDelegate*
2555 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 2546 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
2556 const GURL& url) { 2547 const GURL& url) {
2557 return chrome::NewCryptoModuleBlockingDialogDelegate( 2548 return chrome::NewCryptoModuleBlockingDialogDelegate(
2558 chrome::kCryptoModulePasswordKeygen, url.host()); 2549 chrome::kCryptoModulePasswordKeygen, url.host());
2559 } 2550 }
2560 #endif 2551 #endif
2561 2552
2562 } // namespace chrome 2553 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698