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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
357 // Gets the total amount of data received from network after SSL decoding and | 357 // Gets the total amount of data received from network after SSL decoding and |
358 // proxy handling. | 358 // proxy handling. |
359 int64 GetTotalReceivedBytes() const; | 359 int64 GetTotalReceivedBytes() const; |
360 | 360 |
361 // Returns the current load state for the request. The returned value's | 361 // Returns the current load state for the request. The returned value's |
362 // |param| field is an optional parameter describing details related to the | 362 // |param| field is an optional parameter describing details related to the |
363 // load state. Not all load states have a parameter. | 363 // load state. Not all load states have a parameter. |
364 LoadStateWithParam GetLoadState() const; | 364 LoadStateWithParam GetLoadState() const; |
365 | 365 |
366 // Returns a partial representation of the request's state as a value, for | 366 // Returns a partial representation of the request's state as a value, for |
367 // debugging. Caller takes ownership of returned value. | 367 // debugging. Caller takes ownership of returned value. |
eroman
2015/05/11 19:00:07
Delete the comment "Caller takes ownership of retu
| |
368 base::Value* GetStateAsValue() const; | 368 scoped_ptr<base::Value> GetStateAsValue() const; |
369 | 369 |
370 // Logs information about the what external object currently blocking the | 370 // Logs information about the what external object currently blocking the |
371 // request. LogUnblocked must be called before resuming the request. This | 371 // request. LogUnblocked must be called before resuming the request. This |
372 // can be called multiple times in a row either with or without calling | 372 // can be called multiple times in a row either with or without calling |
373 // LogUnblocked between calls. |blocked_by| must not be NULL or have length | 373 // LogUnblocked between calls. |blocked_by| must not be NULL or have length |
374 // 0. | 374 // 0. |
375 void LogBlockedBy(const char* blocked_by); | 375 void LogBlockedBy(const char* blocked_by); |
376 | 376 |
377 // Just like LogBlockedBy, but also makes GetLoadState return source as the | 377 // Just like LogBlockedBy, but also makes GetLoadState return source as the |
378 // |param| in the value returned by GetLoadState. Calling LogUnblocked or | 378 // |param| in the value returned by GetLoadState. Calling LogUnblocked or |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
817 | 817 |
818 // The proxy server used for this request, if any. | 818 // The proxy server used for this request, if any. |
819 HostPortPair proxy_server_; | 819 HostPortPair proxy_server_; |
820 | 820 |
821 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 821 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
822 }; | 822 }; |
823 | 823 |
824 } // namespace net | 824 } // namespace net |
825 | 825 |
826 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 826 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |