| OLD | NEW |
| 1 // Copyright (c) 2010 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 "net/url_request/url_request_context.h" | 5 #include "net/url_request/url_request_context.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "net/base/cookie_store.h" | 8 #include "net/base/cookie_store.h" |
| 9 #include "net/base/host_resolver.h" | 9 #include "net/base/host_resolver.h" |
| 10 | 10 |
| 11 namespace net { |
| 12 |
| 11 URLRequestContext::URLRequestContext() | 13 URLRequestContext::URLRequestContext() |
| 12 : net_log_(NULL), | 14 : net_log_(NULL), |
| 13 host_resolver_(NULL), | 15 host_resolver_(NULL), |
| 14 cert_verifier_(NULL), | 16 cert_verifier_(NULL), |
| 15 dnsrr_resolver_(NULL), | 17 dnsrr_resolver_(NULL), |
| 16 dns_cert_checker_(NULL), | 18 dns_cert_checker_(NULL), |
| 17 http_transaction_factory_(NULL), | 19 http_transaction_factory_(NULL), |
| 18 ftp_transaction_factory_(NULL), | 20 ftp_transaction_factory_(NULL), |
| 19 http_auth_handler_factory_(NULL), | 21 http_auth_handler_factory_(NULL), |
| 20 network_delegate_(NULL), | 22 network_delegate_(NULL), |
| 21 cookie_policy_(NULL), | 23 cookie_policy_(NULL), |
| 22 transport_security_state_(NULL), | 24 transport_security_state_(NULL), |
| 23 is_main_(false) { | 25 is_main_(false) { |
| 24 } | 26 } |
| 25 | 27 |
| 26 const std::string& URLRequestContext::GetUserAgent(const GURL& url) const { | 28 const std::string& URLRequestContext::GetUserAgent(const GURL& url) const { |
| 27 return EmptyString(); | 29 return EmptyString(); |
| 28 } | 30 } |
| 29 | 31 |
| 30 URLRequestContext::~URLRequestContext() { | 32 URLRequestContext::~URLRequestContext() { |
| 31 } | 33 } |
| 32 | 34 |
| 33 void URLRequestContext::set_cookie_store(net::CookieStore* cookie_store) { | 35 void URLRequestContext::set_cookie_store(CookieStore* cookie_store) { |
| 34 cookie_store_ = cookie_store; | 36 cookie_store_ = cookie_store; |
| 35 } | 37 } |
| 38 |
| 39 } // namespace net |
| OLD | NEW |