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

Unified Diff: content/browser/download/download_file.h

Issue 10392111: Use ByteStream in downloads system to decouple source and sink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to LKGR. Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/download_buffer_unittest.cc ('k') | content/browser/download/download_file_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_file.h
diff --git a/content/browser/download/download_file.h b/content/browser/download/download_file.h
index 0b1f5ffc26ea11de39667f2e1c40ae480ab4ecfb..cb30b2fa421423acd8b1998ccf04f93c6050597c 100644
--- a/content/browser/download/download_file.h
+++ b/content/browser/download/download_file.h
@@ -30,11 +30,6 @@ class CONTENT_EXPORT DownloadFile {
// Returns net::OK on success, or a network error code on failure.
virtual net::Error Initialize() = 0;
- // Write a new chunk of data to the file.
- // Returns net::OK on success (all bytes written to the file),
- // or a network error code on failure.
- virtual net::Error AppendDataToFile(const char* data, size_t data_len) = 0;
-
// Rename the download file.
// Returns net::OK on success, or a network error code on failure.
virtual net::Error Rename(const FilePath& full_path) = 0;
@@ -45,9 +40,6 @@ class CONTENT_EXPORT DownloadFile {
// Abort the download and automatically close the file.
virtual void Cancel() = 0;
- // Indicate that the download has finished. No new data will be received.
- virtual void Finish() = 0;
-
// Informs the OS that this file came from the internet.
virtual void AnnotateWithSourceInformation() = 0;
« no previous file with comments | « content/browser/download/download_buffer_unittest.cc ('k') | content/browser/download/download_file_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698