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