Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: net/url_request/url_request_context.cc

Issue 6930040: Refactor to address URLRequestContext dependency added in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698