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

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

Issue 10491007: fixed issue 128383 - replace GetPeerAddress(AddressList* address) with GetPeerAddress(IPEndPoint* a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix according to review Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_stream.h ('k') | remoting/jingle_glue/ssl_socket_adapter.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_stream.h" 5 #include "net/spdy/spdy_stream.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Since we never decrease the initial window size, we should never hit 277 // Since we never decrease the initial window size, we should never hit
278 // a negative |recv_window_size_|, if we do, it's a client side bug, so we use 278 // a negative |recv_window_size_|, if we do, it's a client side bug, so we use
279 // PROTOCOL_ERROR for lack of a better error code. 279 // PROTOCOL_ERROR for lack of a better error code.
280 if (recv_window_size_ < 0) { 280 if (recv_window_size_ < 0) {
281 session_->ResetStream(stream_id_, PROTOCOL_ERROR, 281 session_->ResetStream(stream_id_, PROTOCOL_ERROR,
282 "Negative recv window size"); 282 "Negative recv window size");
283 NOTREACHED(); 283 NOTREACHED();
284 } 284 }
285 } 285 }
286 286
287 int SpdyStream::GetPeerAddress(AddressList* address) const { 287 int SpdyStream::GetPeerAddress(IPEndPoint* address) const {
288 return session_->GetPeerAddress(address); 288 return session_->GetPeerAddress(address);
289 } 289 }
290 290
291 int SpdyStream::GetLocalAddress(IPEndPoint* address) const { 291 int SpdyStream::GetLocalAddress(IPEndPoint* address) const {
292 return session_->GetLocalAddress(address); 292 return session_->GetLocalAddress(address);
293 } 293 }
294 294
295 bool SpdyStream::WasEverUsed() const { 295 bool SpdyStream::WasEverUsed() const {
296 return session_->WasEverUsed(); 296 return session_->WasEverUsed();
297 } 297 }
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 UMA_HISTOGRAM_TIMES("Net.SpdyStreamDownloadTime", 771 UMA_HISTOGRAM_TIMES("Net.SpdyStreamDownloadTime",
772 recv_last_byte_time_ - recv_first_byte_time_); 772 recv_last_byte_time_ - recv_first_byte_time_);
773 UMA_HISTOGRAM_TIMES("Net.SpdyStreamTime", 773 UMA_HISTOGRAM_TIMES("Net.SpdyStreamTime",
774 recv_last_byte_time_ - send_time_); 774 recv_last_byte_time_ - send_time_);
775 775
776 UMA_HISTOGRAM_COUNTS("Net.SpdySendBytes", send_bytes_); 776 UMA_HISTOGRAM_COUNTS("Net.SpdySendBytes", send_bytes_);
777 UMA_HISTOGRAM_COUNTS("Net.SpdyRecvBytes", recv_bytes_); 777 UMA_HISTOGRAM_COUNTS("Net.SpdyRecvBytes", recv_bytes_);
778 } 778 }
779 779
780 } // namespace net 780 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_stream.h ('k') | remoting/jingle_glue/ssl_socket_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698