| 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" | 8 #include "base/basictypes.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 void StartPreWriteValidation(const ResultCallback& result_callback) override; | 26 void StartPreWriteValidation(const ResultCallback& result_callback) override; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 friend class MediaFileValidatorFactory; | 29 friend class MediaFileValidatorFactory; |
| 30 | 30 |
| 31 explicit SupportedImageTypeValidator(const base::FilePath& file); | 31 explicit SupportedImageTypeValidator(const base::FilePath& file); |
| 32 | 32 |
| 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 scoped_refptr<ImageDecoder> decoder_; | |
| 37 storage::CopyOrMoveFileValidator::ResultCallback callback_; | 36 storage::CopyOrMoveFileValidator::ResultCallback callback_; |
| 38 base::WeakPtrFactory<SupportedImageTypeValidator> weak_factory_; | 37 base::WeakPtrFactory<SupportedImageTypeValidator> weak_factory_; |
| 39 | 38 |
| 40 DISALLOW_COPY_AND_ASSIGN(SupportedImageTypeValidator); | 39 DISALLOW_COPY_AND_ASSIGN(SupportedImageTypeValidator); |
| 41 }; | 40 }; |
| 42 | 41 |
| 43 #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 |