| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/http/http_network_layer.h" | 5 #include "net/http/http_network_layer.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "net/base/client_socket_factory.h" | |
| 9 #include "net/http/http_network_session.h" | 8 #include "net/http/http_network_session.h" |
| 10 #include "net/http/http_network_transaction.h" | 9 #include "net/http/http_network_transaction.h" |
| 10 #include "net/socket/client_socket_factory.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 //----------------------------------------------------------------------------- | 14 //----------------------------------------------------------------------------- |
| 15 | 15 |
| 16 // static | 16 // static |
| 17 HttpTransactionFactory* HttpNetworkLayer::CreateFactory( | 17 HttpTransactionFactory* HttpNetworkLayer::CreateFactory( |
| 18 HostResolver* host_resolver, | 18 HostResolver* host_resolver, |
| 19 ProxyService* proxy_service) { | 19 ProxyService* proxy_service) { |
| 20 DCHECK(proxy_service); | 20 DCHECK(proxy_service); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 HttpNetworkSession* HttpNetworkLayer::GetSession() { | 77 HttpNetworkSession* HttpNetworkLayer::GetSession() { |
| 78 if (!session_) { | 78 if (!session_) { |
| 79 DCHECK(proxy_service_); | 79 DCHECK(proxy_service_); |
| 80 session_ = new HttpNetworkSession(host_resolver_, proxy_service_, | 80 session_ = new HttpNetworkSession(host_resolver_, proxy_service_, |
| 81 socket_factory_); | 81 socket_factory_); |
| 82 } | 82 } |
| 83 return session_; | 83 return session_; |
| 84 } | 84 } |
| 85 | 85 |
| 86 } // namespace net | 86 } // namespace net |
| OLD | NEW |