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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 private: | 29 private: |
30 friend class MediaFileValidatorFactory; | 30 friend class MediaFileValidatorFactory; |
31 | 31 |
32 explicit SupportedImageTypeValidator(const base::FilePath& file); | 32 explicit SupportedImageTypeValidator(const base::FilePath& file); |
33 | 33 |
34 void OnFileOpen(scoped_ptr<std::string> data); | 34 void OnFileOpen(scoped_ptr<std::string> data); |
35 | 35 |
36 base::FilePath path_; | 36 base::FilePath path_; |
37 scoped_refptr<ImageDecoder> decoder_; | 37 scoped_refptr<ImageDecoder> decoder_; |
38 fileapi::CopyOrMoveFileValidator::ResultCallback callback_; | 38 storage::CopyOrMoveFileValidator::ResultCallback callback_; |
39 base::WeakPtrFactory<SupportedImageTypeValidator> weak_factory_; | 39 base::WeakPtrFactory<SupportedImageTypeValidator> weak_factory_; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(SupportedImageTypeValidator); | 41 DISALLOW_COPY_AND_ASSIGN(SupportedImageTypeValidator); |
42 }; | 42 }; |
43 | 43 |
44 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR
_H_ | 44 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR
_H_ |
OLD | NEW |