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

Unified Diff: chrome/browser/chromeos/gdata/gdata.h

Issue 9742002: Wired GDataFileSystem::GetFile() method with internal cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
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,
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata.cc » ('j') | chrome/browser/chromeos/gdata/gdata_file_system.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698