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

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

Issue 11238044: Refactor BaseFile methods to return a DownloadInterruptReason instead of a net::Error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove SHFILE_TO_REASON macro Created 8 years, 2 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_net_log_parameters.cc ('k') | content/browser/download/save_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/save_file.h
diff --git a/content/browser/download/save_file.h b/content/browser/download/save_file.h
index cf0bf646971ad39c5af27826a9317df560e2efd5..fdcc33f687868571c27aeaa5d5ae55b554ddc272 100644
--- a/content/browser/download/save_file.h
+++ b/content/browser/download/save_file.h
@@ -24,9 +24,10 @@ class SaveFile {
virtual ~SaveFile();
// BaseFile delegated functions.
- net::Error Initialize();
- net::Error AppendDataToFile(const char* data, size_t data_len);
- net::Error Rename(const FilePath& full_path);
+ content::DownloadInterruptReason Initialize();
+ content::DownloadInterruptReason AppendDataToFile(const char* data,
+ size_t data_len);
+ content::DownloadInterruptReason Rename(const FilePath& full_path);
void Detach();
void Cancel();
void Finish();
« no previous file with comments | « content/browser/download/download_net_log_parameters.cc ('k') | content/browser/download/save_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698