| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 // | 534 // |
| 535 // If a read error occurs, Read returns false and the request->status | 535 // If a read error occurs, Read returns false and the request->status |
| 536 // will be set to an error. | 536 // will be set to an error. |
| 537 bool Read(IOBuffer* buf, int max_bytes, int* bytes_read); | 537 bool Read(IOBuffer* buf, int max_bytes, int* bytes_read); |
| 538 | 538 |
| 539 // If this request is being cached by the HTTP cache, stop subsequent caching. | 539 // If this request is being cached by the HTTP cache, stop subsequent caching. |
| 540 // Note that this method has no effect on other (simultaneous or not) requests | 540 // Note that this method has no effect on other (simultaneous or not) requests |
| 541 // for the same resource. The typical example is a request that results in | 541 // for the same resource. The typical example is a request that results in |
| 542 // the data being stored to disk (downloaded instead of rendered) so we don't | 542 // the data being stored to disk (downloaded instead of rendered) so we don't |
| 543 // want to store it twice. | 543 // want to store it twice. |
| 544 // |
| 545 // Should only be called if there are no pending operations. |
| 544 void StopCaching(); | 546 void StopCaching(); |
| 545 | 547 |
| 546 // This method may be called to follow a redirect that was deferred in | 548 // This method may be called to follow a redirect that was deferred in |
| 547 // response to an OnReceivedRedirect call. | 549 // response to an OnReceivedRedirect call. |
| 548 void FollowDeferredRedirect(); | 550 void FollowDeferredRedirect(); |
| 549 | 551 |
| 550 // This method must be called to resume network communications that were | 552 // This method must be called to resume network communications that were |
| 551 // deferred in response to an OnBeforeNetworkStart call. | 553 // deferred in response to an OnBeforeNetworkStart call. |
| 552 void ResumeNetworkStart(); | 554 void ResumeNetworkStart(); |
| 553 | 555 |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 HostPortPair proxy_server_; | 830 HostPortPair proxy_server_; |
| 829 | 831 |
| 830 scoped_ptr<const base::debug::StackTrace> stack_trace_; | 832 scoped_ptr<const base::debug::StackTrace> stack_trace_; |
| 831 | 833 |
| 832 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 834 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 833 }; | 835 }; |
| 834 | 836 |
| 835 } // namespace net | 837 } // namespace net |
| 836 | 838 |
| 837 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 839 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |