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> | |
9 | |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/debug/leak_tracker.h" | 13 #include "base/debug/leak_tracker.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
15 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
16 #include "base/supports_user_data.h" | 18 #include "base/supports_user_data.h" |
17 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
353 // or credentials is made. | 355 // or credentials is made. |
354 // | 356 // |
355 // 2. The OnResponseStarted callback is currently running or has run. | 357 // 2. The OnResponseStarted callback is currently running or has run. |
356 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const; | 358 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const; |
357 | 359 |
358 // 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 |
359 // proxy handling. Pertains only to the last URLRequestJob issued by this | 361 // proxy handling. Pertains only to the last URLRequestJob issued by this |
360 // URLRequest -- i.e. the last redirect. | 362 // URLRequest -- i.e. the last redirect. |
361 int64 GetTotalReceivedBytes() const; | 363 int64 GetTotalReceivedBytes() const; |
362 | 364 |
365 // Gets the total amount of data sent over the network before SSL encoding and | |
366 // proxy handling. Pertains only to the last URLRequestJob issued by this | |
367 // URLRequest -- i.e. the last redirect. | |
bengr
2015/09/08 18:20:10
'-- i.e.' -> ', i.e.,'
mmenke
2015/09/10 15:15:38
Suggest "the last redirect" -> "reset on redirects
sclittle
2015/09/10 18:03:58
Done.
sclittle
2015/09/10 18:03:58
Done.
| |
368 int64_t GetTotalSentBytes() const; | |
369 | |
363 // Returns the current load state for the request. The returned value's | 370 // Returns the current load state for the request. The returned value's |
364 // |param| field is an optional parameter describing details related to the | 371 // |param| field is an optional parameter describing details related to the |
365 // load state. Not all load states have a parameter. | 372 // load state. Not all load states have a parameter. |
366 LoadStateWithParam GetLoadState() const; | 373 LoadStateWithParam GetLoadState() const; |
367 | 374 |
368 // Returns a partial representation of the request's state as a value, for | 375 // Returns a partial representation of the request's state as a value, for |
369 // debugging. | 376 // debugging. |
370 scoped_ptr<base::Value> GetStateAsValue() const; | 377 scoped_ptr<base::Value> GetStateAsValue() const; |
371 | 378 |
372 // Logs information about the what external object currently blocking the | 379 // Logs information about the what external object currently blocking the |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
828 HostPortPair proxy_server_; | 835 HostPortPair proxy_server_; |
829 | 836 |
830 scoped_ptr<const base::debug::StackTrace> stack_trace_; | 837 scoped_ptr<const base::debug::StackTrace> stack_trace_; |
831 | 838 |
832 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 839 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
833 }; | 840 }; |
834 | 841 |
835 } // namespace net | 842 } // namespace net |
836 | 843 |
837 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 844 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |