Index: chrome/browser/media_galleries/fileapi/media_file_validator_factory.h |
diff --git a/chrome/browser/media_galleries/fileapi/media_file_validator_factory.h b/chrome/browser/media_galleries/fileapi/media_file_validator_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0969fad1b1ef72e2c5b0388b5fc1eeba7834e918 |
--- /dev/null |
+++ b/chrome/browser/media_galleries/fileapi/media_file_validator_factory.h |
@@ -0,0 +1,40 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_VALIDATOR_FACTORY_H_ |
+#define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_VALIDATOR_FACTORY_H_ |
+ |
+#include "base/basictypes.h" |
+#include "webkit/browser/fileapi/copy_or_move_file_validator.h" |
+ |
+namespace base { |
+class FilePath; |
+} |
+ |
+namespace fileapi { |
+class FileSystemURL; |
+} |
+ |
+namespace chrome { |
+ |
+// A factory for media file validators. A media file validator will use various |
+// strategies (depending on the file type) to attempt to verify that the file |
+// is a valid media file. |
+class MediaFileValidatorFactory |
+ : public fileapi::CopyOrMoveFileValidatorFactory { |
+ public: |
+ MediaFileValidatorFactory(); |
+ virtual ~MediaFileValidatorFactory(); |
+ |
+ // CopyOrMoveFileValidatorFactory implementation. |
+ virtual fileapi::CopyOrMoveFileValidator* CreateCopyOrMoveFileValidator( |
+ const fileapi::FileSystemURL& src, |
+ const base::FilePath& platform_path) OVERRIDE; |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(MediaFileValidatorFactory); |
+}; |
+ |
+} // namespace chrome |
+ |
+#endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_VALIDATOR_FACTORY_H_ |