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