Index: webkit/fileapi/media/native_media_file_util.h |
diff --git a/webkit/fileapi/media/native_media_file_util.h b/webkit/fileapi/media/native_media_file_util.h |
index b1e35733d850b983781dc2434079e6aab9ed48c8..a4bd2ddf275c0e4207917576adc7f8f9a5adb74c 100644 |
--- a/webkit/fileapi/media/native_media_file_util.h |
+++ b/webkit/fileapi/media/native_media_file_util.h |
@@ -58,6 +58,16 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE NativeMediaFileUtil |
const FileSystemURL& url, |
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 base::PlatformFileError IsMediaFile(const base::FilePath& path); |
vandebo (ex-Chrome)
2013/03/25 19:02:11
All the othe rmethods are implementations of Isola
Kevin Bailey
2013/04/03 18:05:07
Done.
|
+ virtual base::PlatformFileError CreateSnapshotFile( |
+ FileSystemOperationContext* context, |
+ const FileSystemURL& url, |
+ base::PlatformFileInfo* file_info, |
+ base::FilePath* platform_path, |
+ SnapshotFilePolicy* snapshot_policy) OVERRIDE; |
private: |
// Like GetLocalFilePath(), but always take media_path_filter() into |