Index: chrome/browser/media_galleries/fileapi/native_media_file_util.h |
diff --git a/chrome/browser/media_galleries/fileapi/native_media_file_util.h b/chrome/browser/media_galleries/fileapi/native_media_file_util.h |
index aa4ee62299b5e0c053efa9fb484205b77419fb48..f6061842a86756cc8853b795d0e71057f0a7286b 100644 |
--- a/chrome/browser/media_galleries/fileapi/native_media_file_util.h |
+++ b/chrome/browser/media_galleries/fileapi/native_media_file_util.h |
@@ -55,6 +55,18 @@ class NativeMediaFileUtil : public fileapi::IsolatedFileUtil { |
const fileapi::FileSystemURL& url, |
base::PlatformFileInfo* file_info, |
base::FilePath* platform_path) OVERRIDE; |
+ virtual webkit_blob::ScopedFile CreateSnapshotFile( |
+ fileapi::FileSystemOperationContext* context, |
+ const fileapi::FileSystemURL& url, |
+ base::PlatformFileError* error, |
+ base::PlatformFileInfo* file_info, |
+ base::FilePath* platform_path) OVERRIDE; |
+ |
+ // Uses the MIME sniffer code, which actually looks into the file, |
+ // to determine if it is really a media file (to avoid exposing |
+ // non-media files with a media file extension.) |
+ static void IsMediaFile(const base::FilePath& path, |
+ base::PlatformFileError* error); |
private: |
// Like GetLocalFilePath(), but always take media_path_filter() into |