diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-28 21:06:48 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-28 21:06:48 +0000 |
commit | 65486ad7c53dd9da35c5464bf8f6ade16bca1f58 (patch) | |
tree | 54bd4e702efaf01d0abf5c2e2ae4edb4a7cc898a /chrome/browser/media_galleries/fileapi/media_file_system_backend.h | |
parent | 20e7cd1e49135d40d2d84f87358000defbf82cf6 (diff) | |
download | chromium_src-65486ad7c53dd9da35c5464bf8f6ade16bca1f58.zip chromium_src-65486ad7c53dd9da35c5464bf8f6ade16bca1f58.tar.gz chromium_src-65486ad7c53dd9da35c5464bf8f6ade16bca1f58.tar.bz2 |
Change media galleries to external file system type to add toURL support
BUG=160900
R=creis@chromium.org, joi@chromium.org, thestig@chromium.org, tsepez@chromium.org, tzik@chromium.org
Review URL: https://codereview.chromium.org/185393012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/media_galleries/fileapi/media_file_system_backend.h')
-rw-r--r-- | chrome/browser/media_galleries/fileapi/media_file_system_backend.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/chrome/browser/media_galleries/fileapi/media_file_system_backend.h b/chrome/browser/media_galleries/fileapi/media_file_system_backend.h index 7dbfbd1..c5b7991 100644 --- a/chrome/browser/media_galleries/fileapi/media_file_system_backend.h +++ b/chrome/browser/media_galleries/fileapi/media_file_system_backend.h @@ -5,20 +5,28 @@ #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ +#include <string> + +#include "base/callback.h" +#include "base/files/file_path.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" +#include "chrome/browser/media_galleries/media_galleries_preferences.h" #include "webkit/browser/fileapi/file_system_backend.h" namespace base { class SequencedTaskRunner; } +namespace fileapi { +class FileSystemURL; +} + namespace net { class URLRequest; } class MediaPathFilter; - class DeviceMediaAsyncFileUtil; class MediaFileSystemBackend : public fileapi::FileSystemBackend { @@ -33,6 +41,12 @@ class MediaFileSystemBackend : public fileapi::FileSystemBackend { static bool CurrentlyOnMediaTaskRunnerThread(); static scoped_refptr<base::SequencedTaskRunner> MediaTaskRunner(); + // Construct the mount point for the gallery specified by |pref_id| in + // the profile located in |profile_path|. + static std::string ConstructMountName(const base::FilePath& profile_path, + const std::string& extension_id, + MediaGalleryPrefId pref_id); + static bool AttemptAutoMountForURLRequest( const net::URLRequest* url_request, const fileapi::FileSystemURL& filesystem_url, |