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

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

Issue 11689002: Fix for spdy cancelling ServerBoundCertServiceRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NET_EXPORT the RequestHandle Created 7 years, 11 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/socket/ssl_client_socket_nss.cc ('k') | no next file » | 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 delegate_(NULL), 66 delegate_(NULL),
67 request_time_(base::Time::Now()), 67 request_time_(base::Time::Now()),
68 response_(new SpdyHeaderBlock), 68 response_(new SpdyHeaderBlock),
69 io_state_(STATE_NONE), 69 io_state_(STATE_NONE),
70 response_status_(OK), 70 response_status_(OK),
71 cancelled_(false), 71 cancelled_(false),
72 has_upload_data_(false), 72 has_upload_data_(false),
73 net_log_(net_log), 73 net_log_(net_log),
74 send_bytes_(0), 74 send_bytes_(0),
75 recv_bytes_(0), 75 recv_bytes_(0),
76 domain_bound_cert_type_(CLIENT_CERT_INVALID_TYPE), 76 domain_bound_cert_type_(CLIENT_CERT_INVALID_TYPE) {
77 domain_bound_cert_request_handle_(NULL) {
78 } 77 }
79 78
80 class SpdyStream::SpdyStreamIOBufferProducer 79 class SpdyStream::SpdyStreamIOBufferProducer
81 : public SpdySession::SpdyIOBufferProducer { 80 : public SpdySession::SpdyIOBufferProducer {
82 public: 81 public:
83 SpdyStreamIOBufferProducer(SpdyStream* stream) : stream_(stream) {} 82 SpdyStreamIOBufferProducer(SpdyStream* stream) : stream_(stream) {}
84 83
85 // SpdyFrameProducer 84 // SpdyFrameProducer
86 virtual RequestPriority GetPriority() const OVERRIDE { 85 virtual RequestPriority GetPriority() const OVERRIDE {
87 return stream_->priority(); 86 return stream_->priority();
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 UMA_HISTOGRAM_TIMES("Net.SpdyStreamDownloadTime", 857 UMA_HISTOGRAM_TIMES("Net.SpdyStreamDownloadTime",
859 recv_last_byte_time_ - recv_first_byte_time_); 858 recv_last_byte_time_ - recv_first_byte_time_);
860 UMA_HISTOGRAM_TIMES("Net.SpdyStreamTime", 859 UMA_HISTOGRAM_TIMES("Net.SpdyStreamTime",
861 recv_last_byte_time_ - send_time_); 860 recv_last_byte_time_ - send_time_);
862 861
863 UMA_HISTOGRAM_COUNTS("Net.SpdySendBytes", send_bytes_); 862 UMA_HISTOGRAM_COUNTS("Net.SpdySendBytes", send_bytes_);
864 UMA_HISTOGRAM_COUNTS("Net.SpdyRecvBytes", recv_bytes_); 863 UMA_HISTOGRAM_COUNTS("Net.SpdyRecvBytes", recv_bytes_);
865 } 864 }
866 865
867 } // namespace net 866 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698