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