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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 | 867 |
866 // The proxy server used for this request, if any. | 868 // The proxy server used for this request, if any. |
867 HostPortPair proxy_server_; | 869 HostPortPair proxy_server_; |
868 | 870 |
869 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 871 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
870 }; | 872 }; |
871 | 873 |
872 } // namespace net | 874 } // namespace net |
873 | 875 |
874 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 876 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |