| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PARSERS_METADATA_PARSER_JPEG_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_PARSERS_METADATA_PARSER_JPEG_FACTORY_H_ |
| 6 #define CHROME_BROWSER_PARSERS_METADATA_PARSER_JPEG_FACTORY_H_ | 6 #define CHROME_BROWSER_PARSERS_METADATA_PARSER_JPEG_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/parsers/metadata_parser_factory.h" | 10 #include "chrome/browser/parsers/metadata_parser_factory.h" |
| 11 | 11 |
| 12 namespace base { |
| 12 class FilePath; | 13 class FilePath; |
| 14 } |
| 13 | 15 |
| 14 class MetadataParserJpegFactory : public MetadataParserFactory { | 16 class MetadataParserJpegFactory : public MetadataParserFactory { |
| 15 public: | 17 public: |
| 16 MetadataParserJpegFactory(); | 18 MetadataParserJpegFactory(); |
| 17 | 19 |
| 18 // Implementation of MetadataParserFactory | 20 // Implementation of MetadataParserFactory |
| 19 virtual bool CanParse(const FilePath& path, | 21 virtual bool CanParse(const base::FilePath& path, |
| 20 char* bytes, | 22 char* bytes, |
| 21 int bytes_size) OVERRIDE; | 23 int bytes_size) OVERRIDE; |
| 22 virtual MetadataParser* CreateParser(const FilePath& path) OVERRIDE; | 24 virtual MetadataParser* CreateParser(const base::FilePath& path) OVERRIDE; |
| 23 | 25 |
| 24 private: | 26 private: |
| 25 DISALLOW_COPY_AND_ASSIGN(MetadataParserJpegFactory); | 27 DISALLOW_COPY_AND_ASSIGN(MetadataParserJpegFactory); |
| 26 }; | 28 }; |
| 27 | 29 |
| 28 #endif // CHROME_BROWSER_PARSERS_METADATA_PARSER_JPEG_FACTORY_H_ | 30 #endif // CHROME_BROWSER_PARSERS_METADATA_PARSER_JPEG_FACTORY_H_ |
| OLD | NEW |