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

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

Issue 282103004: Rename ProtocolInterceptJobFactory and make it not use ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to jam's comments (And a merge) Created 6 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/shell_browser_context.h" 5 #include "content/shell/browser/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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 return download_manager_delegate_.get(); 135 return download_manager_delegate_.get();
136 } 136 }
137 137
138 net::URLRequestContextGetter* ShellBrowserContext::GetRequestContext() { 138 net::URLRequestContextGetter* ShellBrowserContext::GetRequestContext() {
139 return GetDefaultStoragePartition(this)->GetURLRequestContext(); 139 return GetDefaultStoragePartition(this)->GetURLRequestContext();
140 } 140 }
141 141
142 net::URLRequestContextGetter* ShellBrowserContext::CreateRequestContext( 142 net::URLRequestContextGetter* ShellBrowserContext::CreateRequestContext(
143 ProtocolHandlerMap* protocol_handlers, 143 ProtocolHandlerMap* protocol_handlers,
144 ProtocolHandlerScopedVector protocol_interceptors) { 144 URLRequestInterceptorScopedVector request_interceptors) {
145 DCHECK(!url_request_getter_.get()); 145 DCHECK(!url_request_getter_.get());
146 url_request_getter_ = new ShellURLRequestContextGetter( 146 url_request_getter_ = new ShellURLRequestContextGetter(
147 ignore_certificate_errors_, 147 ignore_certificate_errors_,
148 GetPath(), 148 GetPath(),
149 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO), 149 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO),
150 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::FILE), 150 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::FILE),
151 protocol_handlers, 151 protocol_handlers,
152 protocol_interceptors.Pass(), 152 request_interceptors.Pass(),
153 net_log_); 153 net_log_);
154 resource_context_->set_url_request_context_getter(url_request_getter_.get()); 154 resource_context_->set_url_request_context_getter(url_request_getter_.get());
155 return url_request_getter_.get(); 155 return url_request_getter_.get();
156 } 156 }
157 157
158 net::URLRequestContextGetter* 158 net::URLRequestContextGetter*
159 ShellBrowserContext::GetRequestContextForRenderProcess( 159 ShellBrowserContext::GetRequestContextForRenderProcess(
160 int renderer_child_id) { 160 int renderer_child_id) {
161 return GetRequestContext(); 161 return GetRequestContext();
162 } 162 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 int render_process_id, 215 int render_process_id,
216 int render_view_id, 216 int render_view_id,
217 const GURL& origin) { 217 const GURL& origin) {
218 } 218 }
219 219
220 net::URLRequestContextGetter* 220 net::URLRequestContextGetter*
221 ShellBrowserContext::CreateRequestContextForStoragePartition( 221 ShellBrowserContext::CreateRequestContextForStoragePartition(
222 const base::FilePath& partition_path, 222 const base::FilePath& partition_path,
223 bool in_memory, 223 bool in_memory,
224 ProtocolHandlerMap* protocol_handlers, 224 ProtocolHandlerMap* protocol_handlers,
225 ProtocolHandlerScopedVector protocol_interceptors) { 225 URLRequestInterceptorScopedVector request_interceptors) {
226 return NULL; 226 return NULL;
227 } 227 }
228 228
229 ResourceContext* ShellBrowserContext::GetResourceContext() { 229 ResourceContext* ShellBrowserContext::GetResourceContext() {
230 return resource_context_.get(); 230 return resource_context_.get();
231 } 231 }
232 232
233 GeolocationPermissionContext* 233 GeolocationPermissionContext*
234 ShellBrowserContext::GetGeolocationPermissionContext() { 234 ShellBrowserContext::GetGeolocationPermissionContext() {
235 return NULL; 235 return NULL;
236 } 236 }
237 237
238 BrowserPluginGuestManager* ShellBrowserContext::GetGuestManager() { 238 BrowserPluginGuestManager* ShellBrowserContext::GetGuestManager() {
239 return guest_manager_; 239 return guest_manager_;
240 } 240 }
241 241
242 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 242 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
243 return NULL; 243 return NULL;
244 } 244 }
245 245
246 } // namespace content 246 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_browser_context.h ('k') | content/shell/browser/shell_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698