| 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/spdy/chromium/spdy_http_stream.h" | 5 #include "net/spdy/chromium/spdy_http_stream.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "net/spdy/core/spdy_protocol.h" | 29 #include "net/spdy/core/spdy_protocol.h" |
| 30 #include "net/spdy/platform/api/spdy_string.h" | 30 #include "net/spdy/platform/api/spdy_string.h" |
| 31 | 31 |
| 32 namespace net { | 32 namespace net { |
| 33 | 33 |
| 34 const size_t SpdyHttpStream::kRequestBodyBufferSize = 1 << 14; // 16KB | 34 const size_t SpdyHttpStream::kRequestBodyBufferSize = 1 << 14; // 16KB |
| 35 | 35 |
| 36 SpdyHttpStream::SpdyHttpStream(const base::WeakPtr<SpdySession>& spdy_session, | 36 SpdyHttpStream::SpdyHttpStream(const base::WeakPtr<SpdySession>& spdy_session, |
| 37 bool direct, | 37 bool direct, |
| 38 NetLogSource source_dependency) | 38 NetLogSource source_dependency) |
| 39 : MultiplexedHttpStream(MultiplexedSessionHandle(spdy_session)), | 39 : MultiplexedHttpStream( |
| 40 base::MakeUnique<MultiplexedSessionHandle>(spdy_session)), |
| 40 spdy_session_(spdy_session), | 41 spdy_session_(spdy_session), |
| 41 is_reused_(spdy_session_->IsReused()), | 42 is_reused_(spdy_session_->IsReused()), |
| 42 source_dependency_(source_dependency), | 43 source_dependency_(source_dependency), |
| 43 stream_(nullptr), | 44 stream_(nullptr), |
| 44 stream_closed_(false), | 45 stream_closed_(false), |
| 45 closed_stream_status_(ERR_FAILED), | 46 closed_stream_status_(ERR_FAILED), |
| 46 closed_stream_id_(0), | 47 closed_stream_id_(0), |
| 47 closed_stream_received_bytes_(0), | 48 closed_stream_received_bytes_(0), |
| 48 closed_stream_sent_bytes_(0), | 49 closed_stream_sent_bytes_(0), |
| 49 request_info_(NULL), | 50 request_info_(NULL), |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2; | 587 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2; |
| 587 return; | 588 return; |
| 588 } | 589 } |
| 589 | 590 |
| 590 void SpdyHttpStream::SetPriority(RequestPriority priority) { | 591 void SpdyHttpStream::SetPriority(RequestPriority priority) { |
| 591 // TODO(akalin): Plumb this through to |stream_request_| and | 592 // TODO(akalin): Plumb this through to |stream_request_| and |
| 592 // |stream_|. | 593 // |stream_|. |
| 593 } | 594 } |
| 594 | 595 |
| 595 } // namespace net | 596 } // namespace net |
| OLD | NEW |