summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/save_file.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-18 22:39:31 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-18 22:39:31 +0000
commitfde6714d19b512b6190f08082c2ea05a21050253 (patch)
tree652fb54b3891708438648dd8d6cc6e0ebda700eb /chrome/browser/download/save_file.h
parentf90efcffb6df294c6e0269aac4a4a4442b9505f3 (diff)
downloadchromium_src-fde6714d19b512b6190f08082c2ea05a21050253.zip
chromium_src-fde6714d19b512b6190f08082c2ea05a21050253.tar.gz
chromium_src-fde6714d19b512b6190f08082c2ea05a21050253.tar.bz2
Prepare some files for porting:
- Trade in some old wstrings for FilePaths. - Remove some unnecessary headers. Review URL: http://codereview.chromium.org/21466 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9986 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/save_file.h')
-rw-r--r--chrome/browser/download/save_file.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/download/save_file.h b/chrome/browser/download/save_file.h
index 361e20c..33ec7be 100644
--- a/chrome/browser/download/save_file.h
+++ b/chrome/browser/download/save_file.h
@@ -5,9 +5,8 @@
#ifndef CHROME_BROWSER_DOWNLOAD_SAVE_FILE_H__
#define CHROME_BROWSER_DOWNLOAD_SAVE_FILE_H__
-#include <string>
-
#include "base/basictypes.h"
+#include "base/file_path.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/download/save_types.h"
@@ -30,7 +29,7 @@ class SaveFile {
void Cancel();
// Rename the saved file. Returns 'true' if the rename was successful.
- bool Rename(const std::wstring& full_path);
+ bool Rename(const FilePath& full_path);
void Finish();
@@ -44,7 +43,7 @@ class SaveFile {
}
int64 bytes_so_far() const { return bytes_so_far_; }
- std::wstring full_path() const { return full_path_; }
+ FilePath full_path() const { return full_path_; }
bool path_renamed() const { return path_renamed_; }
bool in_progress() const { return in_progress_; }
@@ -65,7 +64,7 @@ class SaveFile {
int64 bytes_so_far_;
// Full path to the saved file including the file name.
- std::wstring full_path_;
+ FilePath full_path_;
// Whether the saved file is still using its initial temporary path.
bool path_renamed_;