| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_stream_factory_impl_request.h" | 5 #include "net/http/http_stream_factory_impl_request.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "net/http/bidirectional_stream_impl.h" | 10 #include "net/http/bidirectional_stream_impl.h" |
| 11 #include "net/http/http_stream_factory_impl_job.h" | 11 #include "net/http/http_stream_factory_impl_job.h" |
| 12 #include "net/log/net_log_event_type.h" | 12 #include "net/log/net_log_event_type.h" |
| 13 #include "net/spdy/spdy_http_stream.h" | 13 #include "net/spdy/chromium/spdy_http_stream.h" |
| 14 #include "net/spdy/spdy_session.h" | 14 #include "net/spdy/chromium/spdy_session.h" |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 | 17 |
| 18 HttpStreamFactoryImpl::Request::Request( | 18 HttpStreamFactoryImpl::Request::Request( |
| 19 const GURL& url, | 19 const GURL& url, |
| 20 Helper* helper, | 20 Helper* helper, |
| 21 HttpStreamRequest::Delegate* delegate, | 21 HttpStreamRequest::Delegate* delegate, |
| 22 WebSocketHandshakeStreamBase::CreateHelper* | 22 WebSocketHandshakeStreamBase::CreateHelper* |
| 23 websocket_handshake_stream_create_helper, | 23 websocket_handshake_stream_create_helper, |
| 24 const NetLogWithSource& net_log, | 24 const NetLogWithSource& net_log, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 return connection_attempts_; | 149 return connection_attempts_; |
| 150 } | 150 } |
| 151 | 151 |
| 152 void HttpStreamFactoryImpl::Request::AddConnectionAttempts( | 152 void HttpStreamFactoryImpl::Request::AddConnectionAttempts( |
| 153 const ConnectionAttempts& attempts) { | 153 const ConnectionAttempts& attempts) { |
| 154 for (const auto& attempt : attempts) | 154 for (const auto& attempt : attempts) |
| 155 connection_attempts_.push_back(attempt); | 155 connection_attempts_.push_back(attempt); |
| 156 } | 156 } |
| 157 | 157 |
| 158 } // namespace net | 158 } // namespace net |
| OLD | NEW |