| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_url_request_context_getter.h" | 5 #include "content/shell/shell_url_request_context_getter.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_split.h" | 8 #include "base/string_split.h" |
| 9 #include "content/browser/browser_thread.h" | 9 #include "content/browser/browser_thread.h" |
| 10 #include "net/base/cert_verifier.h" | 10 #include "net/base/cert_verifier.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 net::HttpCache* main_cache = new net::HttpCache( | 88 net::HttpCache* main_cache = new net::HttpCache( |
| 89 host_resolver_.get(), | 89 host_resolver_.get(), |
| 90 cert_verifier_.get(), | 90 cert_verifier_.get(), |
| 91 origin_bound_cert_service_.get(), | 91 origin_bound_cert_service_.get(), |
| 92 dnsrr_resolver_.get(), | 92 dnsrr_resolver_.get(), |
| 93 NULL, //dns_cert_checker | 93 NULL, //dns_cert_checker |
| 94 proxy_service_.get(), | 94 proxy_service_.get(), |
| 95 new net::SSLConfigServiceDefaults(), | 95 new net::SSLConfigServiceDefaults(), |
| 96 http_auth_handler_factory_.get(), | 96 http_auth_handler_factory_.get(), |
| 97 NULL, // network_delegate | 97 NULL, // network_delegate |
| 98 NULL, // http_server_properties |
| 98 net_log, | 99 net_log, |
| 99 main_backend); | 100 main_backend); |
| 100 main_http_factory_.reset(main_cache); | 101 main_http_factory_.reset(main_cache); |
| 101 | 102 |
| 102 scoped_refptr<net::CookieStore> cookie_store = | 103 scoped_refptr<net::CookieStore> cookie_store = |
| 103 new net::CookieMonster(NULL, NULL); | 104 new net::CookieMonster(NULL, NULL); |
| 104 | 105 |
| 105 url_request_context_ = new net::URLRequestContext(); | 106 url_request_context_ = new net::URLRequestContext(); |
| 106 job_factory_.reset(new net::URLRequestJobFactory); | 107 job_factory_.reset(new net::URLRequestJobFactory); |
| 107 url_request_context_->set_job_factory(job_factory_.get()); | 108 url_request_context_->set_job_factory(job_factory_.get()); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 122 NOTIMPLEMENTED(); | 123 NOTIMPLEMENTED(); |
| 123 return NULL; | 124 return NULL; |
| 124 } | 125 } |
| 125 | 126 |
| 126 scoped_refptr<base::MessageLoopProxy> | 127 scoped_refptr<base::MessageLoopProxy> |
| 127 ShellURLRequestContextGetter::GetIOMessageLoopProxy() const { | 128 ShellURLRequestContextGetter::GetIOMessageLoopProxy() const { |
| 128 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); | 129 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); |
| 129 } | 130 } |
| 130 | 131 |
| 131 } // namespace content | 132 } // namespace content |
| OLD | NEW |