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

Unified Diff: webkit/fileapi/media/device_media_async_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/device_media_async_file_util.h
diff --git a/webkit/fileapi/media/device_media_async_file_util.h b/webkit/fileapi/media/device_media_async_file_util.h
index 2b04329abc66047a0bc5191598eb1df8621634d3..dc52e488443b7571efeb7eb75a49514fabc1b910 100644
--- a/webkit/fileapi/media/device_media_async_file_util.h
+++ b/webkit/fileapi/media/device_media_async_file_util.h
@@ -138,13 +138,22 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE DeviceMediaAsyncFileUtil
// Called when the snapshot file specified by the |platform_path| is
// successfully created. |file_info| contains the device media file details
- // for which the snapshot file is created. |callback| is invoked to complete
- // the CreateSnapshotFile request.
+ // for which the snapshot file is created.
void OnDidCreateSnapshotFile(
+ FileSystemOperationContext* context,
const AsyncFileUtil::CreateSnapshotFileCallback& callback,
const base::PlatformFileInfo& file_info,
const base::FilePath& platform_path);
+ // Called after OnDidCreateSnapshotFile finishes media check.
+ // |callback| is invoked to complete the CreateSnapshotFile request.
+ // It is called with |*p_error| regardless of result.
+ void OnDidCheckMediaRunTask(
+ const AsyncFileUtil::CreateSnapshotFileCallback& callback,
+ const base::PlatformFileInfo& file_info,
+ const base::FilePath& platform_path,
+ base::PlatformFileError* p_error);
+
// Called when CreateSnapshotFile method call fails. |callback| is invoked to
// notify the caller about the |error|.
void OnCreateSnapshotFileError(

Powered by Google App Engine
This is Rietveld 408576698