| 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 } // namespace trace_event |
| 43 } // namespace base | 46 } // namespace base |
| 44 | 47 |
| 45 namespace net { | 48 namespace net { |
| 46 | 49 |
| 47 class CookieOptions; | 50 class CookieOptions; |
| 48 class HostPortPair; | 51 class HostPortPair; |
| 49 class IOBuffer; | 52 class IOBuffer; |
| 50 struct LoadTimingInfo; | 53 struct LoadTimingInfo; |
| 51 struct RedirectInfo; | 54 struct RedirectInfo; |
| 52 class SSLCertRequestInfo; | 55 class SSLCertRequestInfo; |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 // or after the response headers are received. | 647 // or after the response headers are received. |
| 645 void GetConnectionAttempts(ConnectionAttempts* out) const; | 648 void GetConnectionAttempts(ConnectionAttempts* out) const; |
| 646 | 649 |
| 647 // Gets the over the wire raw header size of the response after https | 650 // Gets the over the wire raw header size of the response after https |
| 648 // encryption, 0 for cached responses. | 651 // encryption, 0 for cached responses. |
| 649 int raw_header_size() const { return raw_header_size_; } | 652 int raw_header_size() const { return raw_header_size_; } |
| 650 | 653 |
| 651 // Returns the error status of the request. | 654 // Returns the error status of the request. |
| 652 // Do not use! Going to be protected! | 655 // Do not use! Going to be protected! |
| 653 const URLRequestStatus& status() const { return status_; } | 656 const URLRequestStatus& status() const { return status_; } |
| 657 |
| 658 // Called by URLRequestContext to dump memory allocation stats. |dump| is |
| 659 // the memory allocator dump of the URLRequestContext. |
| 660 void DumpMemoryStats(base::trace_event::MemoryAllocatorDump* dump) const; |
| 661 |
| 654 protected: | 662 protected: |
| 655 // Allow the URLRequestJob class to control the is_pending() flag. | 663 // Allow the URLRequestJob class to control the is_pending() flag. |
| 656 void set_is_pending(bool value) { is_pending_ = value; } | 664 void set_is_pending(bool value) { is_pending_ = value; } |
| 657 | 665 |
| 658 // Allow the URLRequestJob class to set our status too. | 666 // Allow the URLRequestJob class to set our status too. |
| 659 void set_status(URLRequestStatus status); | 667 void set_status(URLRequestStatus status); |
| 660 | 668 |
| 661 // Allow the URLRequestJob to redirect this request. Returns OK if | 669 // Allow the URLRequestJob to redirect this request. Returns OK if |
| 662 // successful, otherwise an error code is returned. | 670 // successful, otherwise an error code is returned. |
| 663 int Redirect(const RedirectInfo& redirect_info); | 671 int Redirect(const RedirectInfo& redirect_info); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 | 860 |
| 853 // The raw header size of the response. | 861 // The raw header size of the response. |
| 854 int raw_header_size_; | 862 int raw_header_size_; |
| 855 | 863 |
| 856 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 864 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 857 }; | 865 }; |
| 858 | 866 |
| 859 } // namespace net | 867 } // namespace net |
| 860 | 868 |
| 861 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 869 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |