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

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

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/save_file.h ('k') | content/browser/download/save_file_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/save_file.cc
diff --git a/content/browser/download/save_file.cc b/content/browser/download/save_file.cc
index cd0acba48237e7a9d4efc774158dba1a1d8280cd..91fe2acf27acb1e36c30819df9d646da612d861e 100644
--- a/content/browser/download/save_file.cc
+++ b/content/browser/download/save_file.cc
@@ -34,15 +34,16 @@ SaveFile::~SaveFile() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
}
-net::Error SaveFile::Initialize() {
+content::DownloadInterruptReason SaveFile::Initialize() {
return file_.Initialize(FilePath());
}
-net::Error SaveFile::AppendDataToFile(const char* data, size_t data_len) {
+content::DownloadInterruptReason SaveFile::AppendDataToFile(const char* data,
+ size_t data_len) {
return file_.AppendDataToFile(data, data_len);
}
-net::Error SaveFile::Rename(const FilePath& full_path) {
+content::DownloadInterruptReason SaveFile::Rename(const FilePath& full_path) {
return file_.Rename(full_path);
}
« no previous file with comments | « content/browser/download/save_file.h ('k') | content/browser/download/save_file_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698