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

Side by Side Diff: net/spdy/spdy_http_stream.h

Issue 17382012: [SPDY] Refactor SpdyStream's handling of response headers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forgot to rename a function Created 7 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
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 #ifndef NET_SPDY_SPDY_HTTP_STREAM_H_ 5 #ifndef NET_SPDY_SPDY_HTTP_STREAM_H_
6 #define NET_SPDY_SPDY_HTTP_STREAM_H_ 6 #define NET_SPDY_SPDY_HTTP_STREAM_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual bool GetLoadTimingInfo( 79 virtual bool GetLoadTimingInfo(
80 LoadTimingInfo* load_timing_info) const OVERRIDE; 80 LoadTimingInfo* load_timing_info) const OVERRIDE;
81 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 81 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
82 virtual void GetSSLCertRequestInfo( 82 virtual void GetSSLCertRequestInfo(
83 SSLCertRequestInfo* cert_request_info) OVERRIDE; 83 SSLCertRequestInfo* cert_request_info) OVERRIDE;
84 virtual bool IsSpdyHttpStream() const OVERRIDE; 84 virtual bool IsSpdyHttpStream() const OVERRIDE;
85 virtual void Drain(HttpNetworkSession* session) OVERRIDE; 85 virtual void Drain(HttpNetworkSession* session) OVERRIDE;
86 86
87 // SpdyStream::Delegate implementation. 87 // SpdyStream::Delegate implementation.
88 virtual void OnRequestHeadersSent() OVERRIDE; 88 virtual void OnRequestHeadersSent() OVERRIDE;
89 virtual int OnResponseHeadersReceived(const SpdyHeaderBlock& response, 89 virtual int OnResponseHeadersUpdated(
90 base::Time response_time, 90 const SpdyHeaderBlock& response_headers) OVERRIDE;
91 int status) OVERRIDE;
92 virtual int OnDataReceived(scoped_ptr<SpdyBuffer> buffer) OVERRIDE; 91 virtual int OnDataReceived(scoped_ptr<SpdyBuffer> buffer) OVERRIDE;
93 virtual void OnDataSent() OVERRIDE; 92 virtual void OnDataSent() OVERRIDE;
94 virtual void OnClose(int status) OVERRIDE; 93 virtual void OnClose(int status) OVERRIDE;
95 94
96 private: 95 private:
97 // Must be called only when |request_info_| is non-NULL. 96 // Must be called only when |request_info_| is non-NULL.
98 bool HasUploadData() const; 97 bool HasUploadData() const;
99 98
100 void OnStreamCreated(const CompletionCallback& callback, int rv); 99 void OnStreamCreated(const CompletionCallback& callback, int rv);
101 100
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 162
164 // Is this spdy stream direct to the origin server (or to a proxy). 163 // Is this spdy stream direct to the origin server (or to a proxy).
165 bool direct_; 164 bool direct_;
166 165
167 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); 166 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream);
168 }; 167 };
169 168
170 } // namespace net 169 } // namespace net
171 170
172 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ 171 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_http_stream.cc » ('j') | net/spdy/spdy_network_transaction_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698