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

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

Issue 9959033: Move NextProto enum to a new file net/socket/next_proto.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address wtc's comments Created 8 years, 8 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') | net/spdy/spdy_stream_spdy2_unittest.cc » ('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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_stream.h ('k') | net/spdy/spdy_stream_spdy2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698