| 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_URL_REQUEST_URL_REQUEST_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 // headers may become unavailable as a new request with the new address | 354 // headers may become unavailable as a new request with the new address |
| 355 // or credentials is made. | 355 // or credentials is made. |
| 356 // | 356 // |
| 357 // 2. The OnResponseStarted callback is currently running or has run. | 357 // 2. The OnResponseStarted callback is currently running or has run. |
| 358 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const; | 358 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const; |
| 359 | 359 |
| 360 // Gets the total amount of data received from network after SSL decoding and | 360 // Gets the total amount of data received from network after SSL decoding and |
| 361 // proxy handling. Pertains only to the last URLRequestJob issued by this | 361 // proxy handling. Pertains only to the last URLRequestJob issued by this |
| 362 // URLRequest, i.e. reset on redirects, but not reset when multiple roundtrips | 362 // URLRequest, i.e. reset on redirects, but not reset when multiple roundtrips |
| 363 // are used for range requests or auth. | 363 // are used for range requests or auth. |
| 364 int64 GetTotalReceivedBytes() const; | 364 int64_t GetTotalReceivedBytes() const; |
| 365 | 365 |
| 366 // Gets the total amount of data sent over the network before SSL encoding and | 366 // Gets the total amount of data sent over the network before SSL encoding and |
| 367 // proxy handling. Pertains only to the last URLRequestJob issued by this | 367 // proxy handling. Pertains only to the last URLRequestJob issued by this |
| 368 // URLRequest, i.e. reset on redirects, but not reset when multiple roundtrips | 368 // URLRequest, i.e. reset on redirects, but not reset when multiple roundtrips |
| 369 // are used for range requests or auth. | 369 // are used for range requests or auth. |
| 370 int64_t GetTotalSentBytes() const; | 370 int64_t GetTotalSentBytes() const; |
| 371 | 371 |
| 372 // Returns the current load state for the request. The returned value's | 372 // Returns the current load state for the request. The returned value's |
| 373 // |param| field is an optional parameter describing details related to the | 373 // |param| field is an optional parameter describing details related to the |
| 374 // load state. Not all load states have a parameter. | 374 // load state. Not all load states have a parameter. |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 HostPortPair proxy_server_; | 837 HostPortPair proxy_server_; |
| 838 | 838 |
| 839 scoped_ptr<const base::debug::StackTrace> stack_trace_; | 839 scoped_ptr<const base::debug::StackTrace> stack_trace_; |
| 840 | 840 |
| 841 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 841 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 842 }; | 842 }; |
| 843 | 843 |
| 844 } // namespace net | 844 } // namespace net |
| 845 | 845 |
| 846 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 846 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |