| 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 return DoLoop(OK); | 507 return DoLoop(OK); |
| 508 } | 508 } |
| 509 | 509 |
| 510 int SpdyStream::WriteStreamData(IOBuffer* data, int length, | 510 int SpdyStream::WriteStreamData(IOBuffer* data, int length, |
| 511 SpdyDataFlags flags) { | 511 SpdyDataFlags flags) { |
| 512 return session_->WriteStreamData(stream_id_, data, length, flags); | 512 return session_->WriteStreamData(stream_id_, data, length, flags); |
| 513 } | 513 } |
| 514 | 514 |
| 515 bool SpdyStream::GetSSLInfo(SSLInfo* ssl_info, | 515 bool SpdyStream::GetSSLInfo(SSLInfo* ssl_info, |
| 516 bool* was_npn_negotiated, | 516 bool* was_npn_negotiated, |
| 517 SSLClientSocket::NextProto* protocol_negotiated) { | 517 NextProto* protocol_negotiated) { |
| 518 return session_->GetSSLInfo( | 518 return session_->GetSSLInfo( |
| 519 ssl_info, was_npn_negotiated, protocol_negotiated); | 519 ssl_info, was_npn_negotiated, protocol_negotiated); |
| 520 } | 520 } |
| 521 | 521 |
| 522 bool SpdyStream::GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) { | 522 bool SpdyStream::GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) { |
| 523 return session_->GetSSLCertRequestInfo(cert_request_info); | 523 return session_->GetSSLCertRequestInfo(cert_request_info); |
| 524 } | 524 } |
| 525 | 525 |
| 526 bool SpdyStream::HasUrl() const { | 526 bool SpdyStream::HasUrl() const { |
| 527 if (pushed_) | 527 if (pushed_) |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 UMA_HISTOGRAM_TIMES("Net.SpdyStreamDownloadTime", | 794 UMA_HISTOGRAM_TIMES("Net.SpdyStreamDownloadTime", |
| 795 recv_last_byte_time_ - recv_first_byte_time_); | 795 recv_last_byte_time_ - recv_first_byte_time_); |
| 796 UMA_HISTOGRAM_TIMES("Net.SpdyStreamTime", | 796 UMA_HISTOGRAM_TIMES("Net.SpdyStreamTime", |
| 797 recv_last_byte_time_ - send_time_); | 797 recv_last_byte_time_ - send_time_); |
| 798 | 798 |
| 799 UMA_HISTOGRAM_COUNTS("Net.SpdySendBytes", send_bytes_); | 799 UMA_HISTOGRAM_COUNTS("Net.SpdySendBytes", send_bytes_); |
| 800 UMA_HISTOGRAM_COUNTS("Net.SpdyRecvBytes", recv_bytes_); | 800 UMA_HISTOGRAM_COUNTS("Net.SpdyRecvBytes", recv_bytes_); |
| 801 } | 801 } |
| 802 | 802 |
| 803 } // namespace net | 803 } // namespace net |
| OLD | NEW |