OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HTTP_HTTP_TRANSACTION_H_ | 5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_ |
6 #define NET_HTTP_HTTP_TRANSACTION_H_ | 6 #define NET_HTTP_HTTP_TRANSACTION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // entire response body is to be ignored (e.g., in a redirect). | 141 // entire response body is to be ignored (e.g., in a redirect). |
142 virtual void DoneReading() = 0; | 142 virtual void DoneReading() = 0; |
143 | 143 |
144 // Returns the response info for this transaction. Must not be called until | 144 // Returns the response info for this transaction. Must not be called until |
145 // |Start| completes. | 145 // |Start| completes. |
146 virtual const HttpResponseInfo* GetResponseInfo() const = 0; | 146 virtual const HttpResponseInfo* GetResponseInfo() const = 0; |
147 | 147 |
148 // Returns the load state for this transaction. | 148 // Returns the load state for this transaction. |
149 virtual LoadState GetLoadState() const = 0; | 149 virtual LoadState GetLoadState() const = 0; |
150 | 150 |
151 // Returns the upload progress in bytes. If there is no upload data, | |
152 // zero will be returned. This does not include the request headers. | |
153 virtual UploadProgress GetUploadProgress() const = 0; | |
154 | |
155 // SetQuicServerInfo sets a object which reads and writes public information | 151 // SetQuicServerInfo sets a object which reads and writes public information |
156 // about a QUIC server. | 152 // about a QUIC server. |
157 virtual void SetQuicServerInfo(QuicServerInfo* quic_server_info) = 0; | 153 virtual void SetQuicServerInfo(QuicServerInfo* quic_server_info) = 0; |
158 | 154 |
159 // Populates all of load timing, except for request start times and receive | 155 // Populates all of load timing, except for request start times and receive |
160 // headers time. | 156 // headers time. |
161 // |load_timing_info| must have all null times when called. Returns false and | 157 // |load_timing_info| must have all null times when called. Returns false and |
162 // does not modify |load_timing_info| if there's no timing information to | 158 // does not modify |load_timing_info| if there's no timing information to |
163 // provide. | 159 // provide. |
164 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0; | 160 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0; |
(...skipping 27 matching lines...) Expand all Loading... |
192 | 188 |
193 // Resumes the transaction after being deferred. | 189 // Resumes the transaction after being deferred. |
194 virtual int ResumeNetworkStart() = 0; | 190 virtual int ResumeNetworkStart() = 0; |
195 | 191 |
196 virtual void GetConnectionAttempts(ConnectionAttempts* out) const = 0; | 192 virtual void GetConnectionAttempts(ConnectionAttempts* out) const = 0; |
197 }; | 193 }; |
198 | 194 |
199 } // namespace net | 195 } // namespace net |
200 | 196 |
201 #endif // NET_HTTP_HTTP_TRANSACTION_H_ | 197 #endif // NET_HTTP_HTTP_TRANSACTION_H_ |
OLD | NEW |