Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: webkit/fileapi/media/native_media_file_util.h

Issue 12703012: Have media gallery (through native media file util) use MIME sniffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed "which thread" errors. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..8e16198fd3c86afb00e8bd6808ac32e605899de2 100644
--- a/webkit/fileapi/media/native_media_file_util.h
+++ b/webkit/fileapi/media/native_media_file_util.h
@@ -58,6 +58,17 @@ 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;
+
+ // 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);
private:
// Like GetLocalFilePath(), but always take media_path_filter() into

Powered by Google App Engine
This is Rietveld 408576698