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

Side by Side Diff: net/http/http_basic_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 // HttpBasicStream is a simple implementation of HttpStream. It assumes it is 5 // HttpBasicStream is a simple implementation of HttpStream. It assumes it is
6 // not sharing a sharing with any other HttpStreams, therefore it just reads and 6 // not sharing a sharing with any other HttpStreams, therefore it just reads and
7 // writes directly to the Http Stream. 7 // writes directly to the Http Stream.
8 8
9 #ifndef NET_HTTP_HTTP_BASIC_STREAM_H_ 9 #ifndef NET_HTTP_HTTP_BASIC_STREAM_H_
10 #define NET_HTTP_HTTP_BASIC_STREAM_H_ 10 #define NET_HTTP_HTTP_BASIC_STREAM_H_
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual bool CanFindEndOfResponse() const OVERRIDE; 59 virtual bool CanFindEndOfResponse() const OVERRIDE;
60 60
61 virtual bool IsConnectionReused() const OVERRIDE; 61 virtual bool IsConnectionReused() const OVERRIDE;
62 62
63 virtual void SetConnectionReused() OVERRIDE; 63 virtual void SetConnectionReused() OVERRIDE;
64 64
65 virtual bool IsConnectionReusable() const OVERRIDE; 65 virtual bool IsConnectionReusable() const OVERRIDE;
66 66
67 virtual int64 GetTotalReceivedBytes() const OVERRIDE; 67 virtual int64 GetTotalReceivedBytes() const OVERRIDE;
68 68
69 virtual int64 GetReceivedBodyLength() const OVERRIDE;
70
69 virtual bool GetLoadTimingInfo( 71 virtual bool GetLoadTimingInfo(
70 LoadTimingInfo* load_timing_info) const OVERRIDE; 72 LoadTimingInfo* load_timing_info) const OVERRIDE;
71 73
72 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 74 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
73 75
74 virtual void GetSSLCertRequestInfo( 76 virtual void GetSSLCertRequestInfo(
75 SSLCertRequestInfo* cert_request_info) OVERRIDE; 77 SSLCertRequestInfo* cert_request_info) OVERRIDE;
76 78
77 virtual bool IsSpdyHttpStream() const OVERRIDE; 79 virtual bool IsSpdyHttpStream() const OVERRIDE;
78 80
79 virtual void Drain(HttpNetworkSession* session) OVERRIDE; 81 virtual void Drain(HttpNetworkSession* session) OVERRIDE;
80 82
81 virtual void SetPriority(RequestPriority priority) OVERRIDE; 83 virtual void SetPriority(RequestPriority priority) OVERRIDE;
82 84
85 virtual void SetRestartInfo(int64 read_offset,
86 const void* hash,
87 size_t hash_length) OVERRIDE;
88
89 virtual void GetHash(void* output, size_t hash_length) OVERRIDE;
90
83 private: 91 private:
84 HttpStreamParser* parser() const { return state_.parser(); } 92 HttpStreamParser* parser() const { return state_.parser(); }
85 93
86 HttpBasicState state_; 94 HttpBasicState state_;
87 95
88 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); 96 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream);
89 }; 97 };
90 98
91 } // namespace net 99 } // namespace net
92 100
93 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ 101 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698