| 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 SSLPrivateKey* client_private_key); | 613 SSLPrivateKey* client_private_key); |
| 614 | 614 |
| 615 // This method can be called after some error notifications to instruct this | 615 // This method can be called after some error notifications to instruct this |
| 616 // URLRequest to ignore the current error and continue with the request. To | 616 // URLRequest to ignore the current error and continue with the request. To |
| 617 // cancel the request instead, call Cancel(). | 617 // cancel the request instead, call Cancel(). |
| 618 void ContinueDespiteLastError(); | 618 void ContinueDespiteLastError(); |
| 619 | 619 |
| 620 // Used to specify the context (cookie store, cache) for this request. | 620 // Used to specify the context (cookie store, cache) for this request. |
| 621 const URLRequestContext* context() const; | 621 const URLRequestContext* context() const; |
| 622 | 622 |
| 623 const NetworkDelegate* network_delegate() const { return network_delegate_; } |
| 624 |
| 623 const BoundNetLog& net_log() const { return net_log_; } | 625 const BoundNetLog& net_log() const { return net_log_; } |
| 624 | 626 |
| 625 // Returns the expected content size if available | 627 // Returns the expected content size if available |
| 626 int64_t GetExpectedContentSize() const; | 628 int64_t GetExpectedContentSize() const; |
| 627 | 629 |
| 628 // Returns the priority level for this request. | 630 // Returns the priority level for this request. |
| 629 RequestPriority priority() const { return priority_; } | 631 RequestPriority priority() const { return priority_; } |
| 630 | 632 |
| 631 // Sets the priority level for this request and any related | 633 // Sets the priority level for this request and any related |
| 632 // jobs. Must not change the priority to anything other than | 634 // jobs. Must not change the priority to anything other than |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 873 HostPortPair proxy_server_; | 875 HostPortPair proxy_server_; |
| 874 | 876 |
| 875 std::unique_ptr<const base::debug::StackTrace> stack_trace_; | 877 std::unique_ptr<const base::debug::StackTrace> stack_trace_; |
| 876 | 878 |
| 877 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 879 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 878 }; | 880 }; |
| 879 | 881 |
| 880 } // namespace net | 882 } // namespace net |
| 881 | 883 |
| 882 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 884 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |