Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_VALIDATOR_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_VALIDATOR_FACTORY_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/files/file_path.h" | |
|
Lei Zhang
2013/05/25 00:09:01
forward decl
vandebo (ex-Chrome)
2013/05/29 06:09:15
Done.
| |
| 10 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" | |
| 11 | |
| 12 namespace fileapi { | |
| 13 class FileSystemURL; | |
| 14 } | |
| 15 | |
| 16 namespace chrome { | |
| 17 | |
| 18 // A factory for media file validators. A media file validator will use various | |
| 19 // strategies (depending on the file type) to attempt to verify that the file | |
| 20 // is a valid media file. | |
| 21 class MediaFileValidatorFactory | |
| 22 : public fileapi::CopyOrMoveFileValidatorFactory { | |
| 23 public: | |
| 24 MediaFileValidatorFactory(); | |
| 25 virtual ~MediaFileValidatorFactory(); | |
| 26 | |
| 27 // CopyOrMoveFileValidatorFactory implementation. | |
| 28 virtual fileapi::CopyOrMoveFileValidator* CreateCopyOrMoveFileValidator( | |
| 29 const fileapi::FileSystemURL& src, | |
| 30 const base::FilePath& platform_path) OVERRIDE; | |
| 31 private: | |
| 32 DISALLOW_COPY_AND_ASSIGN(MediaFileValidatorFactory); | |
| 33 }; | |
| 34 | |
| 35 } // namespace chrome | |
| 36 | |
| 37 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_VALIDATOR_FACTORY_H _ | |
| OLD | NEW |