Index: chrome/browser/chromeos/gdata/gdata.h |
diff --git a/chrome/browser/chromeos/gdata/gdata.h b/chrome/browser/chromeos/gdata/gdata.h |
index 81295cdb5598c8d2f9f7633584458dea7bae0b37..10db0f8b630d202b7d1c5c7ef38593ffa8da071d 100644 |
--- a/chrome/browser/chromeos/gdata/gdata.h |
+++ b/chrome/browser/chromeos/gdata/gdata.h |
@@ -184,6 +184,7 @@ class DocumentsServiceInterface { |
// |
// Can be called on any thread. |
virtual void DownloadDocument(const FilePath& virtual_path, |
+ const FilePath& local_cache_path, |
const GURL& content_url, |
DocumentExportFormat format, |
const DownloadActionCallback& callback) = 0; |
@@ -240,11 +241,13 @@ class DocumentsServiceInterface { |
const FilePath::StringType& directory_name, |
const GetDataCallback& callback) = 0; |
- // Downloads a file identified by its |content_url|. Upon completion, invokes |
+ // Downloads a file identified by its |content_url|. The downloaded file will |
+ // be stored at |local_cache_path| location. Upon completion, invokes |
// |callback| with results on the calling thread. |
// |
// Can be called on any thread. |
virtual void DownloadFile(const FilePath& virtual_path, |
+ const FilePath& local_cache_path, |
const GURL& content_url, |
const DownloadActionCallback& callback) = 0; |
@@ -282,9 +285,14 @@ class DocumentsService |
const EntryActionCallback& callback) OVERRIDE; |
virtual void DownloadDocument( |
const FilePath& virtual_path, |
+ const FilePath& local_cache_path, |
const GURL& content_url, |
DocumentExportFormat format, |
const DownloadActionCallback& callback) OVERRIDE; |
+ virtual void DownloadFile(const FilePath& virtual_path, |
+ const FilePath& local_cache_path, |
+ const GURL& content_url, |
+ const DownloadActionCallback& callback) OVERRIDE; |
virtual void CopyDocument(const GURL& document_url, |
const FilePath::StringType& new_name, |
const GetDataCallback& callback) OVERRIDE; |
@@ -303,9 +311,6 @@ class DocumentsService |
virtual void CreateDirectory(const GURL& parent_content_url, |
const FilePath::StringType& directory_name, |
const GetDataCallback& callback) OVERRIDE; |
- virtual void DownloadFile(const FilePath& virtual_path, |
- const GURL& content_url, |
- const DownloadActionCallback& callback) OVERRIDE; |
virtual void InitiateUpload(const InitiateUploadParams& params, |
const InitiateUploadCallback& callback) OVERRIDE; |
virtual void ResumeUpload(const ResumeUploadParams& params, |