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

Side by Side Diff: content/shell/shell_browser_context.cc

Issue 12386009: Remove the chrome:// protocol interceptor since it's not used anymore now that the chrome job facto… (Closed) Base URL: svn://chrome-svn/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
« no previous file with comments | « content/shell/shell_browser_context.h ('k') | content/shell/shell_content_browser_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/shell/shell_browser_context.h" 5 #include "content/shell/shell_browser_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 net::URLRequestContextGetter* ShellBrowserContext::GetRequestContext() { 129 net::URLRequestContextGetter* ShellBrowserContext::GetRequestContext() {
130 return GetDefaultStoragePartition(this)->GetURLRequestContext(); 130 return GetDefaultStoragePartition(this)->GetURLRequestContext();
131 } 131 }
132 132
133 net::URLRequestContextGetter* ShellBrowserContext::CreateRequestContext( 133 net::URLRequestContextGetter* ShellBrowserContext::CreateRequestContext(
134 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 134 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
135 blob_protocol_handler, 135 blob_protocol_handler,
136 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 136 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
137 file_system_protocol_handler, 137 file_system_protocol_handler,
138 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 138 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
139 developer_protocol_handler,
140 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
141 chrome_protocol_handler, 139 chrome_protocol_handler,
142 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 140 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
143 chrome_devtools_protocol_handler) { 141 chrome_devtools_protocol_handler) {
144 DCHECK(!url_request_getter_); 142 DCHECK(!url_request_getter_);
145 url_request_getter_ = new ShellURLRequestContextGetter( 143 url_request_getter_ = new ShellURLRequestContextGetter(
146 ignore_certificate_errors_, 144 ignore_certificate_errors_,
147 GetPath(), 145 GetPath(),
148 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO), 146 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO),
149 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::FILE), 147 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::FILE),
150 blob_protocol_handler.Pass(), 148 blob_protocol_handler.Pass(),
151 file_system_protocol_handler.Pass(), 149 file_system_protocol_handler.Pass(),
152 developer_protocol_handler.Pass(),
153 chrome_protocol_handler.Pass(), 150 chrome_protocol_handler.Pass(),
154 chrome_devtools_protocol_handler.Pass()); 151 chrome_devtools_protocol_handler.Pass());
155 resource_context_->set_url_request_context_getter(url_request_getter_.get()); 152 resource_context_->set_url_request_context_getter(url_request_getter_.get());
156 return url_request_getter_.get(); 153 return url_request_getter_.get();
157 } 154 }
158 155
159 net::URLRequestContextGetter* 156 net::URLRequestContextGetter*
160 ShellBrowserContext::GetRequestContextForRenderProcess( 157 ShellBrowserContext::GetRequestContextForRenderProcess(
161 int renderer_child_id) { 158 int renderer_child_id) {
162 return GetRequestContext(); 159 return GetRequestContext();
(...skipping 19 matching lines...) Expand all
182 179
183 net::URLRequestContextGetter* 180 net::URLRequestContextGetter*
184 ShellBrowserContext::CreateRequestContextForStoragePartition( 181 ShellBrowserContext::CreateRequestContextForStoragePartition(
185 const base::FilePath& partition_path, 182 const base::FilePath& partition_path,
186 bool in_memory, 183 bool in_memory,
187 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 184 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
188 blob_protocol_handler, 185 blob_protocol_handler,
189 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 186 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
190 file_system_protocol_handler, 187 file_system_protocol_handler,
191 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 188 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
192 developer_protocol_handler,
193 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
194 chrome_protocol_handler, 189 chrome_protocol_handler,
195 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 190 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
196 chrome_devtools_protocol_handler) { 191 chrome_devtools_protocol_handler) {
197 return NULL; 192 return NULL;
198 } 193 }
199 194
200 ResourceContext* ShellBrowserContext::GetResourceContext() { 195 ResourceContext* ShellBrowserContext::GetResourceContext() {
201 return resource_context_.get(); 196 return resource_context_.get();
202 } 197 }
203 198
204 GeolocationPermissionContext* 199 GeolocationPermissionContext*
205 ShellBrowserContext::GetGeolocationPermissionContext() { 200 ShellBrowserContext::GetGeolocationPermissionContext() {
206 return NULL; 201 return NULL;
207 } 202 }
208 203
209 SpeechRecognitionPreferences* 204 SpeechRecognitionPreferences*
210 ShellBrowserContext::GetSpeechRecognitionPreferences() { 205 ShellBrowserContext::GetSpeechRecognitionPreferences() {
211 return NULL; 206 return NULL;
212 } 207 }
213 208
214 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 209 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
215 return NULL; 210 return NULL;
216 } 211 }
217 212
218 } // namespace content 213 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_browser_context.h ('k') | content/shell/shell_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698