| 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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 SSLPrivateKey* client_private_key); | 602 SSLPrivateKey* client_private_key); |
| 603 | 603 |
| 604 // This method can be called after some error notifications to instruct this | 604 // This method can be called after some error notifications to instruct this |
| 605 // URLRequest to ignore the current error and continue with the request. To | 605 // URLRequest to ignore the current error and continue with the request. To |
| 606 // cancel the request instead, call Cancel(). | 606 // cancel the request instead, call Cancel(). |
| 607 void ContinueDespiteLastError(); | 607 void ContinueDespiteLastError(); |
| 608 | 608 |
| 609 // Used to specify the context (cookie store, cache) for this request. | 609 // Used to specify the context (cookie store, cache) for this request. |
| 610 const URLRequestContext* context() const; | 610 const URLRequestContext* context() const; |
| 611 | 611 |
| 612 const BoundNetLog& net_log() const { return net_log_; } | 612 const NetLogWithSource& net_log() const { return net_log_; } |
| 613 | 613 |
| 614 // Returns the expected content size if available | 614 // Returns the expected content size if available |
| 615 int64_t GetExpectedContentSize() const; | 615 int64_t GetExpectedContentSize() const; |
| 616 | 616 |
| 617 // Returns the priority level for this request. | 617 // Returns the priority level for this request. |
| 618 RequestPriority priority() const { return priority_; } | 618 RequestPriority priority() const { return priority_; } |
| 619 | 619 |
| 620 // Sets the priority level for this request and any related | 620 // Sets the priority level for this request and any related |
| 621 // jobs. Must not change the priority to anything other than | 621 // jobs. Must not change the priority to anything other than |
| 622 // MAXIMUM_PRIORITY if the IGNORE_LIMITS load flag is set. | 622 // MAXIMUM_PRIORITY if the IGNORE_LIMITS load flag is set. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 void OnCallToDelegateComplete(); | 748 void OnCallToDelegateComplete(); |
| 749 | 749 |
| 750 // Contextual information used for this request. Cannot be NULL. This contains | 750 // Contextual information used for this request. Cannot be NULL. This contains |
| 751 // most of the dependencies which are shared between requests (disk cache, | 751 // most of the dependencies which are shared between requests (disk cache, |
| 752 // cookie store, socket pool, etc.) | 752 // cookie store, socket pool, etc.) |
| 753 const URLRequestContext* context_; | 753 const URLRequestContext* context_; |
| 754 | 754 |
| 755 NetworkDelegate* network_delegate_; | 755 NetworkDelegate* network_delegate_; |
| 756 | 756 |
| 757 // Tracks the time spent in various load states throughout this request. | 757 // Tracks the time spent in various load states throughout this request. |
| 758 BoundNetLog net_log_; | 758 NetLogWithSource net_log_; |
| 759 | 759 |
| 760 std::unique_ptr<URLRequestJob> job_; | 760 std::unique_ptr<URLRequestJob> job_; |
| 761 std::unique_ptr<UploadDataStream> upload_data_stream_; | 761 std::unique_ptr<UploadDataStream> upload_data_stream_; |
| 762 | 762 |
| 763 std::vector<GURL> url_chain_; | 763 std::vector<GURL> url_chain_; |
| 764 GURL first_party_for_cookies_; | 764 GURL first_party_for_cookies_; |
| 765 url::Origin initiator_; | 765 url::Origin initiator_; |
| 766 GURL delegate_redirect_url_; | 766 GURL delegate_redirect_url_; |
| 767 std::string method_; // "GET", "POST", etc. Should be all uppercase. | 767 std::string method_; // "GET", "POST", etc. Should be all uppercase. |
| 768 std::string referrer_; | 768 std::string referrer_; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 | 857 |
| 858 // The raw header size of the response. | 858 // The raw header size of the response. |
| 859 int raw_header_size_; | 859 int raw_header_size_; |
| 860 | 860 |
| 861 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 861 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 862 }; | 862 }; |
| 863 | 863 |
| 864 } // namespace net | 864 } // namespace net |
| 865 | 865 |
| 866 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 866 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |