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

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

Issue 14578004: Support range uploading of a file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error on Win, Mac and Android. Created 7 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
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_TEST_URL_FETCHER_FACTORY_H_ 5 #ifndef NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_
6 #define NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ 6 #define NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const GURL& url, 84 const GURL& url,
85 URLFetcherDelegate* d); 85 URLFetcherDelegate* d);
86 virtual ~TestURLFetcher(); 86 virtual ~TestURLFetcher();
87 87
88 // URLFetcher implementation 88 // URLFetcher implementation
89 virtual void SetUploadData(const std::string& upload_content_type, 89 virtual void SetUploadData(const std::string& upload_content_type,
90 const std::string& upload_content) OVERRIDE; 90 const std::string& upload_content) OVERRIDE;
91 virtual void SetUploadFilePath( 91 virtual void SetUploadFilePath(
92 const std::string& upload_content_type, 92 const std::string& upload_content_type,
93 const base::FilePath& file_path, 93 const base::FilePath& file_path,
94 uint64 range_offset,
95 uint64 range_length,
94 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; 96 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE;
95 virtual void SetChunkedUpload( 97 virtual void SetChunkedUpload(
96 const std::string& upload_content_type) OVERRIDE; 98 const std::string& upload_content_type) OVERRIDE;
97 // Overriden to cache the chunks uploaded. Caller can read back the uploaded 99 // Overriden to cache the chunks uploaded. Caller can read back the uploaded
98 // chunks with the upload_chunks() accessor. 100 // chunks with the upload_chunks() accessor.
99 virtual void AppendChunkToUpload(const std::string& data, 101 virtual void AppendChunkToUpload(const std::string& data,
100 bool is_last_chunk) OVERRIDE; 102 bool is_last_chunk) OVERRIDE;
101 virtual void SetLoadFlags(int load_flags) OVERRIDE; 103 virtual void SetLoadFlags(int load_flags) OVERRIDE;
102 virtual int GetLoadFlags() const OVERRIDE; 104 virtual int GetLoadFlags() const OVERRIDE;
103 virtual void SetReferrer(const std::string& referrer) OVERRIDE; 105 virtual void SetReferrer(const std::string& referrer) OVERRIDE;
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 int id, 413 int id,
412 const GURL& url, 414 const GURL& url,
413 URLFetcher::RequestType request_type, 415 URLFetcher::RequestType request_type,
414 URLFetcherDelegate* d) OVERRIDE; 416 URLFetcherDelegate* d) OVERRIDE;
415 417
416 }; 418 };
417 419
418 } // namespace net 420 } // namespace net
419 421
420 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ 422 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/two_phase_uploader.cc ('k') | net/url_request/test_url_fetcher_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698