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

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

Issue 403393003: HTTP retry support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 int buf_len, 45 int buf_len,
46 const CompletionCallback& callback) OVERRIDE; 46 const CompletionCallback& callback) OVERRIDE;
47 virtual void Close(bool not_reusable) OVERRIDE; 47 virtual void Close(bool not_reusable) OVERRIDE;
48 virtual HttpStream* RenewStreamForAuth() OVERRIDE; 48 virtual HttpStream* RenewStreamForAuth() OVERRIDE;
49 virtual bool IsResponseBodyComplete() const OVERRIDE; 49 virtual bool IsResponseBodyComplete() const OVERRIDE;
50 virtual bool CanFindEndOfResponse() const OVERRIDE; 50 virtual bool CanFindEndOfResponse() const OVERRIDE;
51 virtual bool IsConnectionReused() const OVERRIDE; 51 virtual bool IsConnectionReused() const OVERRIDE;
52 virtual void SetConnectionReused() OVERRIDE; 52 virtual void SetConnectionReused() OVERRIDE;
53 virtual bool IsConnectionReusable() const OVERRIDE; 53 virtual bool IsConnectionReusable() const OVERRIDE;
54 virtual int64 GetTotalReceivedBytes() const OVERRIDE; 54 virtual int64 GetTotalReceivedBytes() const OVERRIDE;
55 virtual int64 GetReceivedBodyLength() const OVERRIDE;
56
55 virtual bool GetLoadTimingInfo( 57 virtual bool GetLoadTimingInfo(
56 LoadTimingInfo* load_timing_info) const OVERRIDE; 58 LoadTimingInfo* load_timing_info) const OVERRIDE;
57 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 59 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
58 virtual void GetSSLCertRequestInfo( 60 virtual void GetSSLCertRequestInfo(
59 SSLCertRequestInfo* cert_request_info) OVERRIDE; 61 SSLCertRequestInfo* cert_request_info) OVERRIDE;
60 virtual bool IsSpdyHttpStream() const OVERRIDE; 62 virtual bool IsSpdyHttpStream() const OVERRIDE;
61 virtual void Drain(HttpNetworkSession* session) OVERRIDE; 63 virtual void Drain(HttpNetworkSession* session) OVERRIDE;
62 virtual void SetPriority(RequestPriority priority) OVERRIDE; 64 virtual void SetPriority(RequestPriority priority) OVERRIDE;
65 virtual void SetRestartInfo(int64 read_offset, const void* hash,
66 size_t hash_length) OVERRIDE;
67 virtual void GetHash(void* output, size_t len) OVERRIDE;
63 68
64 // QuicReliableClientStream::Delegate implementation 69 // QuicReliableClientStream::Delegate implementation
65 virtual int OnDataReceived(const char* data, int length) OVERRIDE; 70 virtual int OnDataReceived(const char* data, int length) OVERRIDE;
66 virtual void OnClose(QuicErrorCode error) OVERRIDE; 71 virtual void OnClose(QuicErrorCode error) OVERRIDE;
67 virtual void OnError(int error) OVERRIDE; 72 virtual void OnError(int error) OVERRIDE;
68 virtual bool HasSendHeadersComplete() OVERRIDE; 73 virtual bool HasSendHeadersComplete() OVERRIDE;
69 74
70 // QuicClientSession::Observer implementation 75 // QuicClientSession::Observer implementation
71 virtual void OnCryptoHandshakeConfirmed() OVERRIDE; 76 virtual void OnCryptoHandshakeConfirmed() OVERRIDE;
72 virtual void OnSessionClosed(int error) OVERRIDE; 77 virtual void OnSessionClosed(int error) OVERRIDE;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 BoundNetLog stream_net_log_; 169 BoundNetLog stream_net_log_;
165 170
166 base::WeakPtrFactory<QuicHttpStream> weak_factory_; 171 base::WeakPtrFactory<QuicHttpStream> weak_factory_;
167 172
168 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); 173 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream);
169 }; 174 };
170 175
171 } // namespace net 176 } // namespace net
172 177
173 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ 178 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698