| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "chrome/browser/media_galleries/fileapi/av_scanning_file_validator.h" | 12 #include "chrome/browser/media_galleries/fileapi/av_scanning_file_validator.h" |
| 13 | 13 |
| 14 class ImageDecoder; | 14 class ImageDecoder; |
| 15 | 15 |
| 16 class MediaFileValidatorFactory; | 16 class MediaFileValidatorFactory; |
| 17 | 17 |
| 18 // Use ImageDecoder to determine if the file decodes without error. Handles | 18 // Use ImageDecoder to determine if the file decodes without error. Handles |
| 19 // image files supported by Chrome. | 19 // image files supported by Chrome. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 33 void OnFileOpen(scoped_ptr<std::string> data); | 33 void OnFileOpen(scoped_ptr<std::string> data); |
| 34 | 34 |
| 35 base::FilePath path_; | 35 base::FilePath path_; |
| 36 storage::CopyOrMoveFileValidator::ResultCallback callback_; | 36 storage::CopyOrMoveFileValidator::ResultCallback callback_; |
| 37 base::WeakPtrFactory<SupportedImageTypeValidator> weak_factory_; | 37 base::WeakPtrFactory<SupportedImageTypeValidator> weak_factory_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(SupportedImageTypeValidator); | 39 DISALLOW_COPY_AND_ASSIGN(SupportedImageTypeValidator); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR
_H_ | 42 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR
_H_ |
| OLD | NEW |