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

Unified Diff: chrome/common/extensions/api/file_browser_private.idl

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: Addressed the comment 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/common/extensions/api/file_browser_private.idl
diff --git a/chrome/common/extensions/api/file_browser_private.idl b/chrome/common/extensions/api/file_browser_private.idl
index 173d16445fd0ac3841a271b31908e3ea93cee1e6..0a4a7a6a82263c05d03d588cc0aa112ccb1a4444 100644
--- a/chrome/common/extensions/api/file_browser_private.idl
+++ b/chrome/common/extensions/api/file_browser_private.idl
@@ -533,8 +533,8 @@ callback RequestAccessTokenCallback = void(DOMString accessToken);
// |accessToken| OAuth2 access token, or an empty string if failed to fetch.
callback RequestWebStoreAccessTokenCallback = void(DOMString accessToken);
-// |shareUrl| Share Url for the sharing dialog.
-callback GetShareUrlCallback = void(DOMString shareUrl);
+// |url| Result url.
+callback GetUrlCallback = void(DOMString url);
// |profiles| List of profile information.
// |runningProfile| ID of the profile that runs the application instance.
@@ -769,7 +769,12 @@ interface Functions {
// Requests a share dialog url for the specified file.
// |url| Url for the file.
// |callback|
- static void getShareUrl(DOMString url, GetShareUrlCallback callback);
+ static void getShareUrl(DOMString url, GetUrlCallback callback);
+
+ // Requests a download url to download the file contents.
+ // |url| Url for the file.
+ // |callback|
+ static void getDownloadUrl(DOMString url, GetUrlCallback callback);
// Requests to share drive files.
// |url| URL of a file to be shared.

Powered by Google App Engine
This is Rietveld 408576698