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

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: Add missing MockTransaction initializers Created 5 years, 3 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
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 <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
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
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_
OLDNEW
« net/http/http_transaction_test_util.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