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

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

Issue 9742002: Wired GDataFileSystem::GetFile() method with internal cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_documents_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_documents_service.h
diff --git a/chrome/browser/chromeos/gdata/gdata_documents_service.h b/chrome/browser/chromeos/gdata/gdata_documents_service.h
index 16fe078a28237290f83f1194739bf84d693d92c3..6cd4db33d4c50ce83ab885559cb3c0dcbd852b08 100644
--- a/chrome/browser/chromeos/gdata/gdata_documents_service.h
+++ b/chrome/browser/chromeos/gdata/gdata_documents_service.h
@@ -97,6 +97,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;
@@ -153,11 +154,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;
@@ -195,9 +198,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;
@@ -216,9 +224,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_documents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698