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

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

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
Index: chrome/browser/chromeos/gdata/gdata_documents_service.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_documents_service.cc b/chrome/browser/chromeos/gdata/gdata_documents_service.cc
index 3ee58da3464fc6cd095062322573544fafd5ecc8..fab0db3ad23a32e207c5ef4e2ab84eb8bd3935b3 100644
--- a/chrome/browser/chromeos/gdata/gdata_documents_service.cc
+++ b/chrome/browser/chromeos/gdata/gdata_documents_service.cc
@@ -110,11 +110,13 @@ void DocumentsService::GetAccountMetadata(const GetDataCallback& callback) {
void DocumentsService::DownloadDocument(
const FilePath& virtual_path,
+ const FilePath& local_cache_path,
const GURL& document_url,
DocumentExportFormat format,
const DownloadActionCallback& callback) {
DownloadFile(
virtual_path,
+ local_cache_path,
chrome_browser_net::AppendQueryParameter(document_url,
"exportFormat",
GetExportFormatParam(format)),
@@ -122,11 +124,12 @@ void DocumentsService::DownloadDocument(
}
void DocumentsService::DownloadFile(const FilePath& virtual_path,
+ const FilePath& local_cache_path,
const GURL& document_url,
const DownloadActionCallback& callback) {
StartOperationOnUIThread(
new DownloadFileOperation(operation_registry_.get(), profile_, callback,
- document_url, virtual_path));
+ document_url, virtual_path, local_cache_path));
}
void DocumentsService::DeleteDocument(const GURL& document_url,

Powered by Google App Engine
This is Rietveld 408576698