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

Unified Diff: chrome/browser/chromeos/drive/file_system_interface.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/file_system_interface.h
diff --git a/chrome/browser/chromeos/drive/file_system_interface.h b/chrome/browser/chromeos/drive/file_system_interface.h
index 0ac85a4faa3931d955bd54148696d9e8821248d6..c45cf9c78099300441e496e732c24ae285bc9af7 100644
--- a/chrome/browser/chromeos/drive/file_system_interface.h
+++ b/chrome/browser/chromeos/drive/file_system_interface.h
@@ -112,8 +112,8 @@ typedef base::Callback<void(FileError error,
int64 bytes_used)> GetAvailableSpaceCallback;
// Used to get the url to the sharing dialog.
-typedef base::Callback<void(FileError error,
- const GURL& share_url)> GetShareUrlCallback;
+typedef base::Callback<void(FileError error, const GURL& share_url)>
+ GetUrlCallback;
// Used to get filesystem metadata.
typedef base::Callback<void(const FileSystemMetadata&)>
@@ -387,10 +387,13 @@ class FileSystemInterface {
// Fetches the url to the sharing dialog to be embedded in |embed_origin|,
// for the specified file or directory. |callback| must not be null.
- virtual void GetShareUrl(
- const base::FilePath& file_path,
- const GURL& embed_origin,
- const GetShareUrlCallback& callback) = 0;
+ virtual void GetShareUrl(const base::FilePath& file_path,
+ const GURL& embed_origin,
+ const GetUrlCallback& callback) = 0;
+
+ // Fetches the url to download the file directry. |callback| must not be null.
hashimoto 2014/07/09 07:48:57 nit: s/directry/directly/?
+ virtual void GetDownloadUrl(const base::FilePath& file_path,
+ const GetUrlCallback& callback) = 0;
// Returns miscellaneous metadata of the file system like the largest
// timestamp. Used in chrome:drive-internals. |callback| must not be null.

Powered by Google App Engine
This is Rietveld 408576698