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

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

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.cc
diff --git a/chrome/browser/chromeos/gdata/gdata.cc b/chrome/browser/chromeos/gdata/gdata.cc
index ffdee35140ce43dc2c623f6083fab0ef7e816371..c2b091633459271050ddbe19a318b4ccdd8dee97 100644
--- a/chrome/browser/chromeos/gdata/gdata.cc
+++ b/chrome/browser/chromeos/gdata/gdata.cc
@@ -228,11 +228,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)),
@@ -240,11 +242,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