Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Side by Side Diff: net/spdy/spdy_http_stream.cc

Issue 403393003: HTTP retry support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 int64 SpdyHttpStream::GetTotalReceivedBytes() const { 177 int64 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 SpdyHttpStream::GetReceivedBodyLength() const {
mmenke 2014/07/22 14:57:41 This seems to violate the API.
188 return 0;
189 }
190
187 bool SpdyHttpStream::GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const { 191 bool SpdyHttpStream::GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const {
188 if (stream_closed_) { 192 if (stream_closed_) {
189 if (!closed_stream_has_load_timing_info_) 193 if (!closed_stream_has_load_timing_info_)
190 return false; 194 return false;
191 *load_timing_info = closed_stream_load_timing_info_; 195 *load_timing_info = closed_stream_load_timing_info_;
192 return true; 196 return true;
193 } 197 }
194 198
195 // If |stream_| has yet to be created, or does not yet have an ID, fail. 199 // If |stream_| has yet to be created, or does not yet have an ID, fail.
196 // The reused flag can only be correctly set once a stream has an ID. Streams 200 // The reused flag can only be correctly set once a stream has an ID. Streams
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 void SpdyHttpStream::Drain(HttpNetworkSession* session) { 531 void SpdyHttpStream::Drain(HttpNetworkSession* session) {
528 Close(false); 532 Close(false);
529 delete this; 533 delete this;
530 } 534 }
531 535
532 void SpdyHttpStream::SetPriority(RequestPriority priority) { 536 void SpdyHttpStream::SetPriority(RequestPriority priority) {
533 // TODO(akalin): Plumb this through to |stream_request_| and 537 // TODO(akalin): Plumb this through to |stream_request_| and
534 // |stream_|. 538 // |stream_|.
535 } 539 }
536 540
541 void SpdyHttpStream::SetRestartInfo(int64 read_offset, const void* hash,
542 size_t hash_length) {
543 // Nothing to do here.
544 }
545
546 void SpdyHttpStream::GetHash(void* output, size_t len) {
547 // Nothing to do here.
548 }
549
537 } // namespace net 550 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698