| 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 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 167 |
| 168 void SpdyHttpStream::SetConnectionReused() { | 168 void SpdyHttpStream::SetConnectionReused() { |
| 169 // SPDY doesn't need an indicator here. | 169 // SPDY doesn't need an indicator here. |
| 170 } | 170 } |
| 171 | 171 |
| 172 bool SpdyHttpStream::CanReuseConnection() const { | 172 bool SpdyHttpStream::CanReuseConnection() const { |
| 173 // SPDY streams aren't considered reusable. | 173 // SPDY streams aren't considered reusable. |
| 174 return false; | 174 return false; |
| 175 } | 175 } |
| 176 | 176 |
| 177 int64 SpdyHttpStream::GetTotalReceivedBytes() const { | 177 int64_t SpdyHttpStream::GetTotalReceivedBytes() const { |
| 178 if (stream_closed_) | 178 if (stream_closed_) |
| 179 return closed_stream_received_bytes_; | 179 return closed_stream_received_bytes_; |
| 180 | 180 |
| 181 if (!stream_) | 181 if (!stream_) |
| 182 return 0; | 182 return 0; |
| 183 | 183 |
| 184 return stream_->raw_received_bytes(); | 184 return stream_->raw_received_bytes(); |
| 185 } | 185 } |
| 186 | 186 |
| 187 int64_t SpdyHttpStream::GetTotalSentBytes() const { | 187 int64_t SpdyHttpStream::GetTotalSentBytes() const { |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 Close(false); | 546 Close(false); |
| 547 delete this; | 547 delete this; |
| 548 } | 548 } |
| 549 | 549 |
| 550 void SpdyHttpStream::SetPriority(RequestPriority priority) { | 550 void SpdyHttpStream::SetPriority(RequestPriority priority) { |
| 551 // TODO(akalin): Plumb this through to |stream_request_| and | 551 // TODO(akalin): Plumb this through to |stream_request_| and |
| 552 // |stream_|. | 552 // |stream_|. |
| 553 } | 553 } |
| 554 | 554 |
| 555 } // namespace net | 555 } // namespace net |
| OLD | NEW |