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