| 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/spdy_http_stream.h" | 5 #include "net/spdy/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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 int64_t SpdyHttpStream::GetTotalSentBytes() const { | 184 int64_t SpdyHttpStream::GetTotalSentBytes() const { |
| 185 if (stream_closed_) | 185 if (stream_closed_) |
| 186 return closed_stream_sent_bytes_; | 186 return closed_stream_sent_bytes_; |
| 187 | 187 |
| 188 if (!stream_) | 188 if (!stream_) |
| 189 return 0; | 189 return 0; |
| 190 | 190 |
| 191 return stream_->raw_sent_bytes(); | 191 return stream_->raw_sent_bytes(); |
| 192 } | 192 } |
| 193 | 193 |
| 194 bool SpdyHttpStream::GetAlternativeService( |
| 195 AlternativeService* alternative_service) const { |
| 196 return false; |
| 197 } |
| 198 |
| 194 bool SpdyHttpStream::GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const { | 199 bool SpdyHttpStream::GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const { |
| 195 if (stream_closed_) { | 200 if (stream_closed_) { |
| 196 if (!closed_stream_has_load_timing_info_) | 201 if (!closed_stream_has_load_timing_info_) |
| 197 return false; | 202 return false; |
| 198 *load_timing_info = closed_stream_load_timing_info_; | 203 *load_timing_info = closed_stream_load_timing_info_; |
| 199 return true; | 204 return true; |
| 200 } | 205 } |
| 201 | 206 |
| 202 // If |stream_| has yet to be created, or does not yet have an ID, fail. | 207 // If |stream_| has yet to be created, or does not yet have an ID, fail. |
| 203 // The reused flag can only be correctly set once a stream has an ID. Streams | 208 // The reused flag can only be correctly set once a stream has an ID. Streams |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2; | 586 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2; |
| 582 return; | 587 return; |
| 583 } | 588 } |
| 584 | 589 |
| 585 void SpdyHttpStream::SetPriority(RequestPriority priority) { | 590 void SpdyHttpStream::SetPriority(RequestPriority priority) { |
| 586 // TODO(akalin): Plumb this through to |stream_request_| and | 591 // TODO(akalin): Plumb this through to |stream_request_| and |
| 587 // |stream_|. | 592 // |stream_|. |
| 588 } | 593 } |
| 589 | 594 |
| 590 } // namespace net | 595 } // namespace net |
| OLD | NEW |