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 #include "net/ftp/ftp_transaction_factory.h" | 10 #include "net/ftp/ftp_transaction_factory.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 | 52 |
53 void URLRequestContext::set_cookie_store(CookieStore* cookie_store) { | 53 void URLRequestContext::set_cookie_store(CookieStore* cookie_store) { |
54 cookie_store_ = cookie_store; | 54 cookie_store_ = cookie_store; |
55 } | 55 } |
56 | 56 |
57 const std::string& URLRequestContext::GetUserAgent(const GURL& url) const { | 57 const std::string& URLRequestContext::GetUserAgent(const GURL& url) const { |
58 return EmptyString(); | 58 return EmptyString(); |
59 } | 59 } |
60 | 60 |
61 bool URLRequestContext::IsSNIAvailable() const { | |
62 if (!ssl_config_service_) | |
63 return false; | |
64 | |
65 SSLConfig ssl_config; | |
66 ssl_config_service_->GetSSLConfig(&ssl_config); | |
67 return ssl_config.tls1_enabled; | |
68 } | |
69 | |
70 URLRequestContext::~URLRequestContext() { | 61 URLRequestContext::~URLRequestContext() { |
71 } | 62 } |
72 | 63 |
73 } // namespace net | 64 } // namespace net |
OLD | NEW |