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

Unified Diff: chrome/browser/chromeos/drive/job_scheduler.h

Issue 371883003: Files.app: Add an private API to get a download URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/drive/job_scheduler.h
diff --git a/chrome/browser/chromeos/drive/job_scheduler.h b/chrome/browser/chromeos/drive/job_scheduler.h
index 158f6439d6e1af04dd0c9f070a2abf5e67182f4e..dcd93338a1ee5272fb56d53b276e6e0ae4ce091a 100644
--- a/chrome/browser/chromeos/drive/job_scheduler.h
+++ b/chrome/browser/chromeos/drive/job_scheduler.h
@@ -83,6 +83,10 @@ class JobScheduler
// |callback| must not be null.
void GetAboutResource(const google_apis::AboutResourceCallback& callback);
+ void GetFileResource(const std::string& resource_id,
hashimoto 2014/07/09 07:48:57 GetFileResource() is already present. No need to a
+ const google_apis::FileResourceCallback& callback);
+
+ // Adds a GetAllResourceList operation to the queue.
// Adds a GetAllFileList operation to the queue.
// |callback| must not be null.
void GetAllFileList(const google_apis::FileListCallback& callback);
@@ -117,11 +121,11 @@ class JobScheduler
const ClientContext& context,
const google_apis::FileResourceCallback& callback);
- // Adds a GetShareUrl operation to the queue.
+ // Adds a GetUrl operation to the queue.
void GetShareUrl(const std::string& resource_id,
const GURL& embed_origin,
const ClientContext& context,
- const google_apis::GetShareUrlCallback& callback);
+ const google_apis::GetUrlCallback& callback);
// Adds a TrashResource operation to the queue.
void TrashResource(const std::string& resource_id,
@@ -299,11 +303,10 @@ class JobScheduler
scoped_ptr<google_apis::AboutResource> about_resource);
// Callback for job finishing with a GetShareUrlCallback.
- void OnGetShareUrlJobDone(
- JobID job_id,
- const google_apis::GetShareUrlCallback& callback,
- google_apis::GDataErrorCode error,
- const GURL& share_url);
+ void OnGetShareUrlJobDone(JobID job_id,
+ const google_apis::GetUrlCallback& callback,
+ google_apis::GDataErrorCode error,
+ const GURL& share_url);
// Callback for job finishing with a AppListCallback.
void OnGetAppListJobDone(

Powered by Google App Engine
This is Rietveld 408576698