Chromium Code Reviews| 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..c2bb83c839dd227968ed4ea784ed367035e34721 |
| --- /dev/null |
| +++ b/chrome/browser/media_galleries/fileapi/media_file_validator_factory.h |
| @@ -0,0 +1,33 @@ |
| +// 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 "base/files/file_path.h" |
| +#include "webkit/fileapi/copy_or_move_file_validator.h" |
| + |
| +namespace fileapi { |
| +class FileSystemURL; |
| +} |
| + |
| +namespace chrome { |
| + |
|
Greg Billock
2013/05/22 16:21:59
class comment
vandebo (ex-Chrome)
2013/05/22 18:41:17
Done.
|
| +class MediaFileValidatorFactory |
| + : public fileapi::CopyOrMoveFileValidatorFactory { |
| + public: |
| + MediaFileValidatorFactory(); |
| + virtual ~MediaFileValidatorFactory(); |
| + |
| + virtual fileapi::CopyOrMoveFileValidator* CreateCopyOrMoveFileValidator( |
| + const fileapi::FileSystemURL& src, |
|
Greg Billock
2013/05/22 16:21:59
Why does the factory method take these args? They
vandebo (ex-Chrome)
2013/05/22 18:41:17
There is a comment explaining the args in the pare
|
| + 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_ |