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

Side by Side Diff: net/quic/quic_http_stream.h

Issue 1320683003: Move logic to figure out if a socket can be reused into HttpStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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
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_QUIC_QUIC_HTTP_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_HTTP_STREAM_H_
6 #define NET_QUIC_QUIC_HTTP_STREAM_H_ 6 #define NET_QUIC_QUIC_HTTP_STREAM_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 HttpResponseInfo* response, 53 HttpResponseInfo* response,
54 const CompletionCallback& callback) override; 54 const CompletionCallback& callback) override;
55 UploadProgress GetUploadProgress() const override; 55 UploadProgress GetUploadProgress() const override;
56 int ReadResponseHeaders(const CompletionCallback& callback) override; 56 int ReadResponseHeaders(const CompletionCallback& callback) override;
57 int ReadResponseBody(IOBuffer* buf, 57 int ReadResponseBody(IOBuffer* buf,
58 int buf_len, 58 int buf_len,
59 const CompletionCallback& callback) override; 59 const CompletionCallback& callback) override;
60 void Close(bool not_reusable) override; 60 void Close(bool not_reusable) override;
61 HttpStream* RenewStreamForAuth() override; 61 HttpStream* RenewStreamForAuth() override;
62 bool IsResponseBodyComplete() const override; 62 bool IsResponseBodyComplete() const override;
63 bool CanFindEndOfResponse() const override;
64 bool IsConnectionReused() const override; 63 bool IsConnectionReused() const override;
65 void SetConnectionReused() override; 64 void SetConnectionReused() override;
66 bool IsConnectionReusable() const override; 65 bool CanReuseConnection() const override;
67 int64 GetTotalReceivedBytes() const override; 66 int64 GetTotalReceivedBytes() const override;
68 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; 67 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
69 void GetSSLInfo(SSLInfo* ssl_info) override; 68 void GetSSLInfo(SSLInfo* ssl_info) override;
70 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 69 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
71 bool IsSpdyHttpStream() const override;
72 void Drain(HttpNetworkSession* session) override; 70 void Drain(HttpNetworkSession* session) override;
73 void SetPriority(RequestPriority priority) override; 71 void SetPriority(RequestPriority priority) override;
74 72
75 // QuicReliableClientStream::Delegate implementation 73 // QuicReliableClientStream::Delegate implementation
76 void OnHeadersAvailable(const SpdyHeaderBlock& headers) override; 74 void OnHeadersAvailable(const SpdyHeaderBlock& headers) override;
77 void OnDataAvailable() override; 75 void OnDataAvailable() override;
78 void OnClose(QuicErrorCode error) override; 76 void OnClose(QuicErrorCode error) override;
79 void OnError(int error) override; 77 void OnError(int error) override;
80 bool HasSendHeadersComplete() override; 78 bool HasSendHeadersComplete() override;
81 79
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 #endif 188 #endif
191 189
192 base::WeakPtrFactory<QuicHttpStream> weak_factory_; 190 base::WeakPtrFactory<QuicHttpStream> weak_factory_;
193 191
194 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); 192 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream);
195 }; 193 };
196 194
197 } // namespace net 195 } // namespace net
198 196
199 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ 197 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698