| 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..926241286d932bcfc85d0abc5e1fadfd29c9c01e 100644
|
| --- a/webkit/fileapi/media/native_media_file_util.h
|
| +++ b/webkit/fileapi/media/native_media_file_util.h
|
| @@ -58,6 +58,12 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE NativeMediaFileUtil
|
| const FileSystemURL& url,
|
| base::PlatformFileInfo* file_info,
|
| base::FilePath* platform_path) OVERRIDE;
|
| + 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
|
| @@ -80,6 +86,11 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE NativeMediaFileUtil
|
| base::PlatformFileError failure_error,
|
| base::FilePath* local_file_path);
|
|
|
| + // Uses the MIME sniffer code, which actually looks into the file,
|
| + // to determine if it is really a media file (versus a potential
|
| + // Trojan horse.)
|
| + bool IsMediaFile(const base::FilePath& path);
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil);
|
| };
|
|
|
|
|