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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 // | 543 // |
544 // If a read error occurs, Read returns false and the request->status | 544 // If a read error occurs, Read returns false and the request->status |
545 // will be set to an error. | 545 // will be set to an error. |
546 bool Read(IOBuffer* buf, int max_bytes, int* bytes_read); | 546 bool Read(IOBuffer* buf, int max_bytes, int* bytes_read); |
547 | 547 |
548 // If this request is being cached by the HTTP cache, stop subsequent caching. | 548 // If this request is being cached by the HTTP cache, stop subsequent caching. |
549 // Note that this method has no effect on other (simultaneous or not) requests | 549 // Note that this method has no effect on other (simultaneous or not) requests |
550 // for the same resource. The typical example is a request that results in | 550 // for the same resource. The typical example is a request that results in |
551 // the data being stored to disk (downloaded instead of rendered) so we don't | 551 // the data being stored to disk (downloaded instead of rendered) so we don't |
552 // want to store it twice. | 552 // want to store it twice. |
| 553 // |
| 554 // Should only be called if there are no pending operations. |
553 void StopCaching(); | 555 void StopCaching(); |
554 | 556 |
555 // This method may be called to follow a redirect that was deferred in | 557 // This method may be called to follow a redirect that was deferred in |
556 // response to an OnReceivedRedirect call. | 558 // response to an OnReceivedRedirect call. |
557 void FollowDeferredRedirect(); | 559 void FollowDeferredRedirect(); |
558 | 560 |
559 // This method must be called to resume network communications that were | 561 // This method must be called to resume network communications that were |
560 // deferred in response to an OnBeforeNetworkStart call. | 562 // deferred in response to an OnBeforeNetworkStart call. |
561 void ResumeNetworkStart(); | 563 void ResumeNetworkStart(); |
562 | 564 |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 HostPortPair proxy_server_; | 839 HostPortPair proxy_server_; |
838 | 840 |
839 scoped_ptr<const base::debug::StackTrace> stack_trace_; | 841 scoped_ptr<const base::debug::StackTrace> stack_trace_; |
840 | 842 |
841 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 843 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
842 }; | 844 }; |
843 | 845 |
844 } // namespace net | 846 } // namespace net |
845 | 847 |
846 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 848 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |