OLD | NEW |
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_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 5 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 const CompletionCallback& callback) override; | 57 const CompletionCallback& callback) override; |
58 int RestartWithAuth(const AuthCredentials& credentials, | 58 int RestartWithAuth(const AuthCredentials& credentials, |
59 const CompletionCallback& callback) override; | 59 const CompletionCallback& callback) override; |
60 bool IsReadyToRestartForAuth() override; | 60 bool IsReadyToRestartForAuth() override; |
61 | 61 |
62 int Read(IOBuffer* buf, | 62 int Read(IOBuffer* buf, |
63 int buf_len, | 63 int buf_len, |
64 const CompletionCallback& callback) override; | 64 const CompletionCallback& callback) override; |
65 void StopCaching() override; | 65 void StopCaching() override; |
66 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; | 66 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; |
67 int64 GetTotalReceivedBytes() const override; | 67 int64_t GetTotalReceivedBytes() const override; |
68 int64_t GetTotalSentBytes() const override; | 68 int64_t GetTotalSentBytes() const override; |
69 void DoneReading() override; | 69 void DoneReading() override; |
70 const HttpResponseInfo* GetResponseInfo() const override; | 70 const HttpResponseInfo* GetResponseInfo() const override; |
71 LoadState GetLoadState() const override; | 71 LoadState GetLoadState() const override; |
72 UploadProgress GetUploadProgress() const override; | 72 UploadProgress GetUploadProgress() const override; |
73 void SetQuicServerInfo(QuicServerInfo* quic_server_info) override; | 73 void SetQuicServerInfo(QuicServerInfo* quic_server_info) override; |
74 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 74 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
75 void SetPriority(RequestPriority priority) override; | 75 void SetPriority(RequestPriority priority) override; |
76 void SetWebSocketHandshakeStreamCreateHelper( | 76 void SetWebSocketHandshakeStreamCreateHelper( |
77 WebSocketHandshakeStreamBase::CreateHelper* create_helper) override; | 77 WebSocketHandshakeStreamBase::CreateHelper* create_helper) override; |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // we want to throw away. The response body is typically a small error | 317 // we want to throw away. The response body is typically a small error |
318 // page just a few hundred bytes long. | 318 // page just a few hundred bytes long. |
319 static const int kDrainBodyBufferSize = 1024; | 319 static const int kDrainBodyBufferSize = 1024; |
320 | 320 |
321 // User buffer and length passed to the Read method. | 321 // User buffer and length passed to the Read method. |
322 scoped_refptr<IOBuffer> read_buf_; | 322 scoped_refptr<IOBuffer> read_buf_; |
323 int read_buf_len_; | 323 int read_buf_len_; |
324 | 324 |
325 // Total number of bytes received on all destroyed HttpStreams for this | 325 // Total number of bytes received on all destroyed HttpStreams for this |
326 // transaction. | 326 // transaction. |
327 int64 total_received_bytes_; | 327 int64_t total_received_bytes_; |
328 | 328 |
329 // Total number of bytes sent on all destroyed HttpStreams for this | 329 // Total number of bytes sent on all destroyed HttpStreams for this |
330 // transaction. | 330 // transaction. |
331 int64_t total_sent_bytes_; | 331 int64_t total_sent_bytes_; |
332 | 332 |
333 // When the transaction started / finished sending the request, including | 333 // When the transaction started / finished sending the request, including |
334 // the body, if present. | 334 // the body, if present. |
335 base::TimeTicks send_start_time_; | 335 base::TimeTicks send_start_time_; |
336 base::TimeTicks send_end_time_; | 336 base::TimeTicks send_end_time_; |
337 | 337 |
(...skipping 13 matching lines...) Expand all Loading... |
351 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; | 351 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; |
352 | 352 |
353 ConnectionAttempts connection_attempts_; | 353 ConnectionAttempts connection_attempts_; |
354 | 354 |
355 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 355 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
356 }; | 356 }; |
357 | 357 |
358 } // namespace net | 358 } // namespace net |
359 | 359 |
360 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 360 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
OLD | NEW |