[email protected] | 27a112c | 2011-01-06 04:19:30 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
[email protected] | f1d8192 | 2010-07-31 17:47:09 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "net/url_request/url_request_context.h" |
| 6 | |
| 7 | #include "base/string_util.h" |
[email protected] | 9349cfb | 2010-08-31 18:00:53 | [diff] [blame] | 8 | #include "net/base/cookie_store.h" |
| 9 | #include "net/base/host_resolver.h" |
[email protected] | f6c21cb | 2011-02-16 19:45:41 | [diff] [blame^] | 10 | #include "net/ftp/ftp_transaction_factory.h" |
| 11 | #include "net/http/http_transaction_factory.h" |
[email protected] | 9349cfb | 2010-08-31 18:00:53 | [diff] [blame] | 12 | |
[email protected] | 27a112c | 2011-01-06 04:19:30 | [diff] [blame] | 13 | namespace net { |
| 14 | |
[email protected] | 9349cfb | 2010-08-31 18:00:53 | [diff] [blame] | 15 | URLRequestContext::URLRequestContext() |
[email protected] | f6c21cb | 2011-02-16 19:45:41 | [diff] [blame^] | 16 | : is_main_(false), |
| 17 | net_log_(NULL), |
[email protected] | c3a7bce | 2010-10-18 17:36:54 | [diff] [blame] | 18 | host_resolver_(NULL), |
[email protected] | 822581d | 2010-12-16 17:27:15 | [diff] [blame] | 19 | cert_verifier_(NULL), |
[email protected] | 2db58053 | 2010-10-08 14:32:37 | [diff] [blame] | 20 | dnsrr_resolver_(NULL), |
[email protected] | 345c613b | 2010-11-22 19:33:18 | [diff] [blame] | 21 | dns_cert_checker_(NULL), |
[email protected] | 9349cfb | 2010-08-31 18:00:53 | [diff] [blame] | 22 | http_auth_handler_factory_(NULL), |
| 23 | network_delegate_(NULL), |
| 24 | cookie_policy_(NULL), |
[email protected] | 70b9234 | 2010-10-12 05:54:06 | [diff] [blame] | 25 | transport_security_state_(NULL), |
[email protected] | f6c21cb | 2011-02-16 19:45:41 | [diff] [blame^] | 26 | http_transaction_factory_(NULL), |
| 27 | ftp_transaction_factory_(NULL) { |
[email protected] | 9349cfb | 2010-08-31 18:00:53 | [diff] [blame] | 28 | } |
[email protected] | f1d8192 | 2010-07-31 17:47:09 | [diff] [blame] | 29 | |
[email protected] | d100e44f | 2011-01-26 22:47:11 | [diff] [blame] | 30 | void URLRequestContext::set_cookie_store(CookieStore* cookie_store) { |
| 31 | cookie_store_ = cookie_store; |
| 32 | } |
| 33 | |
[email protected] | f1d8192 | 2010-07-31 17:47:09 | [diff] [blame] | 34 | const std::string& URLRequestContext::GetUserAgent(const GURL& url) const { |
| 35 | return EmptyString(); |
| 36 | } |
[email protected] | 9349cfb | 2010-08-31 18:00:53 | [diff] [blame] | 37 | |
| 38 | URLRequestContext::~URLRequestContext() { |
| 39 | } |
[email protected] | 2fb62920 | 2010-12-23 23:52:57 | [diff] [blame] | 40 | |
[email protected] | 27a112c | 2011-01-06 04:19:30 | [diff] [blame] | 41 | } // namespace net |