summaryrefslogtreecommitdiffstats
path: root/content/browser/download/download_file_impl.h
diff options
context:
space:
mode:
authorrdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-11 18:53:19 +0000
committerrdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-11 18:53:19 +0000
commita19317f99fd8f35cd2bf8ebe3d0f34dc71866574 (patch)
tree0c408489cce653c864ec1382c9f9973ffcbef685 /content/browser/download/download_file_impl.h
parent51a6b19d1ca74f79697d71f06b0de84e1c977b49 (diff)
downloadchromium_src-a19317f99fd8f35cd2bf8ebe3d0f34dc71866574.zip
chromium_src-a19317f99fd8f35cd2bf8ebe3d0f34dc71866574.tar.gz
chromium_src-a19317f99fd8f35cd2bf8ebe3d0f34dc71866574.tar.bz2
Move Rename functionality from DownloadFileManager to DownloadFileImple.
BUG=123998 R=asanka@chromium.org Review URL: https://chromiumcodereview.appspot.com/10689093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146162 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download/download_file_impl.h')
-rw-r--r--content/browser/download/download_file_impl.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/content/browser/download/download_file_impl.h b/content/browser/download/download_file_impl.h
index 1083132..b3630e5 100644
--- a/content/browser/download/download_file_impl.h
+++ b/content/browser/download/download_file_impl.h
@@ -40,8 +40,9 @@ class CONTENT_EXPORT DownloadFileImpl : virtual public content::DownloadFile {
// DownloadFile functions.
virtual content::DownloadInterruptReason Initialize() OVERRIDE;
- virtual content::DownloadInterruptReason Rename(
- const FilePath& full_path) OVERRIDE;
+ virtual void Rename(const FilePath& full_path,
+ bool overwrite_existing_file,
+ const RenameCompletionCallback& callback) OVERRIDE;
virtual void Detach() OVERRIDE;
virtual void Cancel() OVERRIDE;
virtual void AnnotateWithSourceInformation() OVERRIDE;
@@ -63,13 +64,13 @@ class CONTENT_EXPORT DownloadFileImpl : virtual public content::DownloadFile {
const char* data, size_t data_len);
private:
+ // Send an update on our progress.
+ void SendUpdate();
+
// Called when there's some activity on stream_reader_ that needs to be
// handled.
void StreamActive();
- // Send updates on our progress.
- void SendUpdate();
-
// The base file instance.
BaseFile file_;