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

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

Issue 1316863007: Change GetTotalReceivedBytes() from int64 to int64_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on master Created 5 years, 3 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
« no previous file with comments | « net/spdy/spdy_http_stream.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_http_stream.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698