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

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

Issue 12261025: Revert "Add SetUploadDataStream method to URLFetcher." which broke URLFetcher retries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « net/url_request/url_fetcher_core.cc ('k') | net/url_request/url_fetcher_impl.cc » ('j') | 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 // This file contains URLFetcher, a wrapper around URLRequest that handles 5 // This file contains URLFetcher, a wrapper around URLRequest that handles
6 // low-level details like thread safety, ref counting, and incremental buffer 6 // low-level details like thread safety, ref counting, and incremental buffer
7 // reading. This is useful for callers who simply want to get the data from a 7 // reading. This is useful for callers who simply want to get the data from a
8 // URL and don't care about all the nitty-gritty details. 8 // URL and don't care about all the nitty-gritty details.
9 // 9 //
10 // NOTE(willchan): Only one "IO" thread is supported for URLFetcher. This is a 10 // NOTE(willchan): Only one "IO" thread is supported for URLFetcher. This is a
(...skipping 17 matching lines...) Expand all
28 public: 28 public:
29 // |url| is the URL to send the request to. 29 // |url| is the URL to send the request to.
30 // |request_type| is the type of request to make. 30 // |request_type| is the type of request to make.
31 // |d| the object that will receive the callback on fetch completion. 31 // |d| the object that will receive the callback on fetch completion.
32 URLFetcherImpl(const GURL& url, 32 URLFetcherImpl(const GURL& url,
33 RequestType request_type, 33 RequestType request_type,
34 URLFetcherDelegate* d); 34 URLFetcherDelegate* d);
35 virtual ~URLFetcherImpl(); 35 virtual ~URLFetcherImpl();
36 36
37 // URLFetcher implementation: 37 // URLFetcher implementation:
38 virtual void SetUploadDataStream(
39 const std::string& upload_content_type,
40 scoped_ptr<UploadDataStream> upload_content) OVERRIDE;
41 virtual void SetUploadData(const std::string& upload_content_type, 38 virtual void SetUploadData(const std::string& upload_content_type,
42 const std::string& upload_content) OVERRIDE; 39 const std::string& upload_content) OVERRIDE;
43 virtual void SetChunkedUpload( 40 virtual void SetChunkedUpload(
44 const std::string& upload_content_type) OVERRIDE; 41 const std::string& upload_content_type) OVERRIDE;
45 virtual void AppendChunkToUpload(const std::string& data, 42 virtual void AppendChunkToUpload(const std::string& data,
46 bool is_last_chunk) OVERRIDE; 43 bool is_last_chunk) OVERRIDE;
47 virtual void SetLoadFlags(int load_flags) OVERRIDE; 44 virtual void SetLoadFlags(int load_flags) OVERRIDE;
48 virtual int GetLoadFlags() const OVERRIDE; 45 virtual int GetLoadFlags() const OVERRIDE;
49 virtual void SetReferrer(const std::string& referrer) OVERRIDE; 46 virtual void SetReferrer(const std::string& referrer) OVERRIDE;
50 virtual void SetExtraRequestHeaders( 47 virtual void SetExtraRequestHeaders(
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 static int GetNumFetcherCores(); 114 static int GetNumFetcherCores();
118 115
119 const scoped_refptr<URLFetcherCore> core_; 116 const scoped_refptr<URLFetcherCore> core_;
120 117
121 DISALLOW_COPY_AND_ASSIGN(URLFetcherImpl); 118 DISALLOW_COPY_AND_ASSIGN(URLFetcherImpl);
122 }; 119 };
123 120
124 } // namespace net 121 } // namespace net
125 122
126 #endif // NET_URL_REQUEST_URL_FETCHER_IMPL_H_ 123 #endif // NET_URL_REQUEST_URL_FETCHER_IMPL_H_
OLDNEW
« no previous file with comments | « net/url_request/url_fetcher_core.cc ('k') | net/url_request/url_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698