Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: net/url_request/url_request.h

Issue 1230113012: [net] Better StopCaching() handling for HttpCache::Transaction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« net/http/partial_data.cc ('K') | « net/http/partial_data.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« net/http/partial_data.cc ('K') | « net/http/partial_data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698