| 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 <memory> | 10 #include <memory> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "net/http/http_response_info.h" | 33 #include "net/http/http_response_info.h" |
| 34 #include "net/log/net_log_with_source.h" | 34 #include "net/log/net_log_with_source.h" |
| 35 #include "net/proxy/proxy_server.h" | 35 #include "net/proxy/proxy_server.h" |
| 36 #include "net/socket/connection_attempts.h" | 36 #include "net/socket/connection_attempts.h" |
| 37 #include "net/url_request/url_request_status.h" | 37 #include "net/url_request/url_request_status.h" |
| 38 #include "url/gurl.h" | 38 #include "url/gurl.h" |
| 39 #include "url/origin.h" | 39 #include "url/origin.h" |
| 40 | 40 |
| 41 namespace base { | 41 namespace base { |
| 42 class Value; | 42 class Value; |
| 43 namespace trace_event { |
| 44 class MemoryAllocatorDump; |
| 45 } |
| 43 | 46 |
| 44 namespace debug { | 47 namespace debug { |
| 45 class StackTrace; | 48 class StackTrace; |
| 46 } // namespace debug | 49 } // namespace debug |
| 47 } // namespace base | 50 } // namespace base |
| 48 | 51 |
| 49 namespace net { | 52 namespace net { |
| 50 | 53 |
| 51 class CookieOptions; | 54 class CookieOptions; |
| 52 class HostPortPair; | 55 class HostPortPair; |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 // or after the response headers are received. | 651 // or after the response headers are received. |
| 649 void GetConnectionAttempts(ConnectionAttempts* out) const; | 652 void GetConnectionAttempts(ConnectionAttempts* out) const; |
| 650 | 653 |
| 651 // Gets the over the wire raw header size of the response after https | 654 // Gets the over the wire raw header size of the response after https |
| 652 // encryption, 0 for cached responses. | 655 // encryption, 0 for cached responses. |
| 653 int raw_header_size() const { return raw_header_size_; } | 656 int raw_header_size() const { return raw_header_size_; } |
| 654 | 657 |
| 655 // Returns the error status of the request. | 658 // Returns the error status of the request. |
| 656 // Do not use! Going to be protected! | 659 // Do not use! Going to be protected! |
| 657 const URLRequestStatus& status() const { return status_; } | 660 const URLRequestStatus& status() const { return status_; } |
| 661 |
| 662 // Called by URLRequestContext to dump memory allocation stats. |dump| is |
| 663 // the memory allocator dump of the URLRequestContext. |
| 664 void DumpMemoryStats(base::trace_event::MemoryAllocatorDump* dump) const; |
| 665 |
| 658 protected: | 666 protected: |
| 659 // Allow the URLRequestJob class to control the is_pending() flag. | 667 // Allow the URLRequestJob class to control the is_pending() flag. |
| 660 void set_is_pending(bool value) { is_pending_ = value; } | 668 void set_is_pending(bool value) { is_pending_ = value; } |
| 661 | 669 |
| 662 // Allow the URLRequestJob class to set our status too. | 670 // Allow the URLRequestJob class to set our status too. |
| 663 void set_status(URLRequestStatus status); | 671 void set_status(URLRequestStatus status); |
| 664 | 672 |
| 665 // Allow the URLRequestJob to redirect this request. Returns OK if | 673 // Allow the URLRequestJob to redirect this request. Returns OK if |
| 666 // successful, otherwise an error code is returned. | 674 // successful, otherwise an error code is returned. |
| 667 int Redirect(const RedirectInfo& redirect_info); | 675 int Redirect(const RedirectInfo& redirect_info); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 | 864 |
| 857 // The raw header size of the response. | 865 // The raw header size of the response. |
| 858 int raw_header_size_; | 866 int raw_header_size_; |
| 859 | 867 |
| 860 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 868 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 861 }; | 869 }; |
| 862 | 870 |
| 863 } // namespace net | 871 } // namespace net |
| 864 | 872 |
| 865 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 873 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |