Index: chrome/browser/chromeos/fileapi/external_file_url_util.h |
diff --git a/chrome/browser/chromeos/fileapi/external_file_url_util.h b/chrome/browser/chromeos/fileapi/external_file_url_util.h |
index bf7a21faed6538b1aa37a93c762a79db2318d107..f283075674718a8fba40f1d44a177170595aa2a2 100644 |
--- a/chrome/browser/chromeos/fileapi/external_file_url_util.h |
+++ b/chrome/browser/chromeos/fileapi/external_file_url_util.h |
@@ -12,13 +12,20 @@ namespace base { |
class FilePath; |
} |
+namespace storage { |
+class FileSystemURL; |
+} |
+ |
namespace chromeos { |
-// Returns the external file resource url formatted as "externalfile:<path>" |
-GURL FilePathToExternalFileURL(const base::FilePath& path); |
+// Obtains the external file url formatted as "externalfile:<path>" from file |
+// path. Returns empty URL if the file system does not provide the external file |
+// URL. |
+GURL FileSystemURLToExternalFileURL( |
+ const storage::FileSystemURL& file_system_url); |
-// Converts a externalfile: URL back to a path that can be passed to FileSystem. |
-base::FilePath ExternalFileURLToFilePath(const GURL& url); |
+// Converts a externalfile: URL back to a virtual path of FileSystemURL. |
+base::FilePath ExternalFileURLToVirtualPath(const GURL& url); |
// Obtains external file URL (e.g. external:drive/root/sample.txt) from file |
// path (e.g. /special/drive-xxx/root/sample.txt), if the |path| points an |