Chromium Code Reviews| 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 <string> | 10 #include <string> |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 622 SSLPrivateKey* client_private_key); | 622 SSLPrivateKey* client_private_key); |
| 623 | 623 |
| 624 // This method can be called after some error notifications to instruct this | 624 // This method can be called after some error notifications to instruct this |
| 625 // URLRequest to ignore the current error and continue with the request. To | 625 // URLRequest to ignore the current error and continue with the request. To |
| 626 // cancel the request instead, call Cancel(). | 626 // cancel the request instead, call Cancel(). |
| 627 void ContinueDespiteLastError(); | 627 void ContinueDespiteLastError(); |
| 628 | 628 |
| 629 // Used to specify the context (cookie store, cache) for this request. | 629 // Used to specify the context (cookie store, cache) for this request. |
| 630 const URLRequestContext* context() const; | 630 const URLRequestContext* context() const; |
| 631 | 631 |
| 632 NetworkDelegate* network_delegate() { return network_delegate_; } | |
|
Thiemo Nagel
2016/03/08 18:44:35
Please make this const if possible.
| |
| 633 | |
| 632 const BoundNetLog& net_log() const { return net_log_; } | 634 const BoundNetLog& net_log() const { return net_log_; } |
| 633 | 635 |
| 634 // Returns the expected content size if available | 636 // Returns the expected content size if available |
| 635 int64_t GetExpectedContentSize() const; | 637 int64_t GetExpectedContentSize() const; |
| 636 | 638 |
| 637 // Returns the priority level for this request. | 639 // Returns the priority level for this request. |
| 638 RequestPriority priority() const { return priority_; } | 640 RequestPriority priority() const { return priority_; } |
| 639 | 641 |
| 640 // Sets the priority level for this request and any related | 642 // Sets the priority level for this request and any related |
| 641 // jobs. Must not change the priority to anything other than | 643 // jobs. Must not change the priority to anything other than |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 884 HostPortPair proxy_server_; | 886 HostPortPair proxy_server_; |
| 885 | 887 |
| 886 scoped_ptr<const base::debug::StackTrace> stack_trace_; | 888 scoped_ptr<const base::debug::StackTrace> stack_trace_; |
| 887 | 889 |
| 888 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 890 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 889 }; | 891 }; |
| 890 | 892 |
| 891 } // namespace net | 893 } // namespace net |
| 892 | 894 |
| 893 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 895 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |