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

Unified Diff: chrome/browser/media_galleries/fileapi/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: Addressed comments about MIME sniffer. Created 7 years, 8 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: chrome/browser/media_galleries/fileapi/device_media_async_file_util.h
diff --git a/chrome/browser/media_galleries/fileapi/device_media_async_file_util.h b/chrome/browser/media_galleries/fileapi/device_media_async_file_util.h
index 3a32f6741b6ce5b6131692af0bbf4d40a6df2c29..9085efee24549146a4b39bafc065ff929f50b367 100644
--- a/chrome/browser/media_galleries/fileapi/device_media_async_file_util.h
+++ b/chrome/browser/media_galleries/fileapi/device_media_async_file_util.h
@@ -139,14 +139,23 @@ class DeviceMediaAsyncFileUtil : public fileapi::AsyncFileUtil {
// 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(
const AsyncFileUtil::CreateSnapshotFileCallback& callback,
base::SequencedTaskRunner* media_task_runner,
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 |*error| regardless of result.
+ void OnDidCheckMediaRunTask(
vandebo (ex-Chrome) 2013/04/30 21:20:36 nit: I think this should be just OnDidCheckMedia.
Kevin Bailey 2013/05/02 00:54:02 Done.
+ const AsyncFileUtil::CreateSnapshotFileCallback& callback,
+ base::SequencedTaskRunner* media_task_runner,
+ const base::PlatformFileInfo& file_info,
+ const base::FilePath& platform_path,
+ base::PlatformFileError* 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