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

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: Indentation fix. Created 7 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/device_media_async_file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9fb90f7d06328ace01e7233ab707836d7115d266 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
@@ -8,6 +8,7 @@
#include "base/files/file_path.h"
#include "base/memory/weak_ptr.h"
#include "base/platform_file.h"
+#include "webkit/blob/shareable_file_reference.h"
#include "webkit/fileapi/async_file_util.h"
namespace base {
@@ -139,14 +140,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 OnDidCheckMedia(
+ const AsyncFileUtil::CreateSnapshotFileCallback& callback,
+ base::SequencedTaskRunner* media_task_runner,
+ const base::PlatformFileInfo& file_info,
+ scoped_refptr<webkit_blob::ShareableFileReference> platform_file,
+ base::PlatformFileError* error);
+
// Called when CreateSnapshotFile method call fails. |callback| is invoked to
// notify the caller about the |error|.
void OnCreateSnapshotFileError(
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/device_media_async_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698