| Index: webkit/browser/fileapi/file_system_backend.h
|
| diff --git a/webkit/browser/fileapi/file_system_backend.h b/webkit/browser/fileapi/file_system_backend.h
|
| index b71c8cab06d7fce114b06a3ade098dff8084f165..43bc3af119a7f3ebfdc8264736032206cca239f2 100644
|
| --- a/webkit/browser/fileapi/file_system_backend.h
|
| +++ b/webkit/browser/fileapi/file_system_backend.h
|
| @@ -20,14 +20,11 @@
|
| class GURL;
|
|
|
| namespace storage {
|
| -class FileStreamReader;
|
| -}
|
| -
|
| -namespace storage {
|
|
|
| class AsyncFileUtil;
|
| class CopyOrMoveFileValidatorFactory;
|
| class FileSystemURL;
|
| +class FileStreamReader;
|
| class FileStreamWriter;
|
| class FileSystemContext;
|
| class FileSystemFileUtil;
|
| @@ -35,6 +32,9 @@ class FileSystemOperation;
|
| class FileSystemQuotaUtil;
|
| class WatcherManager;
|
|
|
| +// Callback to take GURL.
|
| +typedef base::Callback<void(const GURL& url)> URLCallback;
|
| +
|
| // An interface for defining a file system backend.
|
| //
|
| // NOTE: when you implement a new FileSystemBackend for your own
|
| @@ -157,6 +157,11 @@ class ExternalFileSystemBackend : public FileSystemBackend {
|
| // path is not exposed by this provider.
|
| virtual bool GetVirtualPath(const base::FilePath& file_system_path,
|
| base::FilePath* virtual_path) = 0;
|
| + // Gets a redirect URL for contents. e.g. Google Drive URL for hosted
|
| + // documents. Returns empty URL if the entry does not have the redirect URL.
|
| + virtual void GetRedirectURLForContents(
|
| + const storage::FileSystemURL& url,
|
| + const storage::URLCallback& callback) = 0;
|
| };
|
|
|
| } // namespace storage
|
|
|