| 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_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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |