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

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

Issue 6904057: Schetch changes required to support URLFetcher saving response to a file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow URLFetcher to save the response as a file. Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/net/url_fetcher_unittest.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 30 matching lines...) Expand all
41 class URLRequestContext; 41 class URLRequestContext;
42 class URLRequestJob; 42 class URLRequestJob;
43 class X509Certificate; 43 class X509Certificate;
44 44
45 // This stores the values of the Set-Cookie headers received during the request. 45 // This stores the values of the Set-Cookie headers received during the request.
46 // Each item in the vector corresponds to a Set-Cookie: line received, 46 // Each item in the vector corresponds to a Set-Cookie: line received,
47 // excluding the "Set-Cookie:" part. 47 // excluding the "Set-Cookie:" part.
48 typedef std::vector<std::string> ResponseCookies; 48 typedef std::vector<std::string> ResponseCookies;
49 49
50 //----------------------------------------------------------------------------- 50 //-----------------------------------------------------------------------------
51 // A class representing the asynchronous load of a data stream from an URL. 51 // A class representing the asynchronous load of a data stream from an URL.
52 // 52 //
53 // The lifetime of an instance of this class is completely controlled by the 53 // The lifetime of an instance of this class is completely controlled by the
54 // consumer, and the instance is not required to live on the heap or be 54 // consumer, and the instance is not required to live on the heap or be
55 // allocated in any special way. It is also valid to delete an URLRequest 55 // allocated in any special way. It is also valid to delete an URLRequest
56 // object during the handling of a callback to its delegate. Of course, once 56 // object during the handling of a callback to its delegate. Of course, once
57 // the URLRequest is deleted, no further callbacks to its delegate will occur. 57 // the URLRequest is deleted, no further callbacks to its delegate will occur.
58 // 58 //
59 // NOTE: All usage of all instances of this class should be on the same thread. 59 // NOTE: All usage of all instances of this class should be on the same thread.
60 // 60 //
61 class URLRequest : public base::NonThreadSafe { 61 class URLRequest : public base::NonThreadSafe {
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 // Callback passed to the network delegate to notify us when a blocked request 670 // Callback passed to the network delegate to notify us when a blocked request
671 // is ready to be resumed or canceled. 671 // is ready to be resumed or canceled.
672 CompletionCallbackImpl<URLRequest> before_request_callback_; 672 CompletionCallbackImpl<URLRequest> before_request_callback_;
673 673
674 DISALLOW_COPY_AND_ASSIGN(URLRequest); 674 DISALLOW_COPY_AND_ASSIGN(URLRequest);
675 }; 675 };
676 676
677 } // namespace net 677 } // namespace net
678 678
679 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 679 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « chrome/common/net/url_fetcher_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698