| Index: content/shell/browser/shell_url_request_context_getter.cc
|
| diff --git a/content/shell/browser/shell_url_request_context_getter.cc b/content/shell/browser/shell_url_request_context_getter.cc
|
| index 40bca8ca98ed875d6d92dd68c1359f4ad64805d2..53703098e1340435cb1f7e1a93d8743b5dda35d2 100644
|
| --- a/content/shell/browser/shell_url_request_context_getter.cc
|
| +++ b/content/shell/browser/shell_url_request_context_getter.cc
|
| @@ -33,10 +33,10 @@
|
| #include "net/ssl/ssl_config_service_defaults.h"
|
| #include "net/url_request/data_protocol_handler.h"
|
| #include "net/url_request/file_protocol_handler.h"
|
| -#include "net/url_request/protocol_intercept_job_factory.h"
|
| #include "net/url_request/static_http_user_agent_settings.h"
|
| #include "net/url_request/url_request_context.h"
|
| #include "net/url_request/url_request_context_storage.h"
|
| +#include "net/url_request/url_request_intercepting_job_factory.h"
|
| #include "net/url_request/url_request_job_factory_impl.h"
|
|
|
| namespace content {
|
| @@ -64,14 +64,14 @@ ShellURLRequestContextGetter::ShellURLRequestContextGetter(
|
| base::MessageLoop* io_loop,
|
| base::MessageLoop* file_loop,
|
| ProtocolHandlerMap* protocol_handlers,
|
| - ProtocolHandlerScopedVector protocol_interceptors,
|
| + content::URLRequestInterceptorScopedVector request_interceptors,
|
| net::NetLog* net_log)
|
| : ignore_certificate_errors_(ignore_certificate_errors),
|
| base_path_(base_path),
|
| io_loop_(io_loop),
|
| file_loop_(file_loop),
|
| net_log_(net_log),
|
| - protocol_interceptors_(protocol_interceptors.Pass()) {
|
| + request_interceptors_(request_interceptors.Pass()) {
|
| // Must first be created on the UI thread.
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
|
|
| @@ -220,14 +220,14 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() {
|
| // Set up interceptors in the reverse order.
|
| scoped_ptr<net::URLRequestJobFactory> top_job_factory =
|
| job_factory.PassAs<net::URLRequestJobFactory>();
|
| - for (ProtocolHandlerScopedVector::reverse_iterator i =
|
| - protocol_interceptors_.rbegin();
|
| - i != protocol_interceptors_.rend();
|
| + for (URLRequestInterceptorScopedVector::reverse_iterator i =
|
| + request_interceptors_.rbegin();
|
| + i != request_interceptors_.rend();
|
| ++i) {
|
| - top_job_factory.reset(new net::ProtocolInterceptJobFactory(
|
| + top_job_factory.reset(new net::URLRequestInterceptingJobFactory(
|
| top_job_factory.Pass(), make_scoped_ptr(*i)));
|
| }
|
| - protocol_interceptors_.weak_clear();
|
| + request_interceptors_.weak_clear();
|
|
|
| storage_->set_job_factory(top_job_factory.release());
|
| }
|
|
|