Chromium Code Reviews| Index: chrome/browser/media_galleries/fileapi/media_file_system_backend.h |
| 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 7dbfbd139faffe4bd12c12ff47b78b4af240cacb..c397b08a4402ef95bdf757fc903fe7d8a263d81b 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,29 @@ |
| #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.h" |
|
Lei Zhang
2014/03/20 00:46:26
base/files/file_path.h
vandebo (ex-Chrome)
2014/03/20 18:08:53
Done.
|
| #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 Profile; |
|
Lei Zhang
2014/03/20 00:46:26
not needed?
vandebo (ex-Chrome)
2014/03/20 18:08:53
Done.
|
| class DeviceMediaAsyncFileUtil; |
| class MediaFileSystemBackend : public fileapi::FileSystemBackend { |
| @@ -33,6 +42,10 @@ class MediaFileSystemBackend : public fileapi::FileSystemBackend { |
| static bool CurrentlyOnMediaTaskRunnerThread(); |
| static scoped_refptr<base::SequencedTaskRunner> MediaTaskRunner(); |
| + static std::string ConstructMountName(const base::FilePath& profile_path, |
|
Lei Zhang
2014/03/20 00:46:26
Can you document the behavior w.r.t. |pref_id| ?
vandebo (ex-Chrome)
2014/03/20 18:08:53
Not sure what you mean specifically wrt to pref_id
Lei Zhang
2014/03/20 21:37:53
The special case of pref_id = kInvalidMediaGallery
|
| + const std::string& extension_id, |
| + MediaGalleryPrefId pref_id); |
| + |
| static bool AttemptAutoMountForURLRequest( |
| const net::URLRequest* url_request, |
| const fileapi::FileSystemURL& filesystem_url, |