| 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_FILEBASE_H_ | 5 #ifndef CHROME_BROWSER_PARSERS_METADATA_PARSER_FILEBASE_H_ |
| 6 #define CHROME_BROWSER_PARSERS_METADATA_PARSER_FILEBASE_H_ | 6 #define CHROME_BROWSER_PARSERS_METADATA_PARSER_FILEBASE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/containers/hash_tables.h" |
| 11 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 12 #include "base/hash_tables.h" | |
| 13 #include "chrome/browser/parsers/metadata_parser.h" | 13 #include "chrome/browser/parsers/metadata_parser.h" |
| 14 | 14 |
| 15 typedef base::hash_map<std::string, std::string> PropertyMap; | 15 typedef base::hash_map<std::string, std::string> PropertyMap; |
| 16 | 16 |
| 17 // Parser for the file type. Allows for parsing of files, and gets | 17 // Parser for the file type. Allows for parsing of files, and gets |
| 18 // properties associated with files. | 18 // properties associated with files. |
| 19 class FileMetadataParser : public MetadataParser { | 19 class FileMetadataParser : public MetadataParser { |
| 20 public: | 20 public: |
| 21 explicit FileMetadataParser(const base::FilePath& path); | 21 explicit FileMetadataParser(const base::FilePath& path); |
| 22 | 22 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 48 virtual bool IsEnd() OVERRIDE; | 48 virtual bool IsEnd() OVERRIDE; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 PropertyMap& properties_; | 51 PropertyMap& properties_; |
| 52 PropertyMap::iterator it; | 52 PropertyMap::iterator it; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(FileMetadataPropertyIterator); | 54 DISALLOW_COPY_AND_ASSIGN(FileMetadataPropertyIterator); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 #endif // CHROME_BROWSER_PARSERS_METADATA_PARSER_FILEBASE_H_ | 57 #endif // CHROME_BROWSER_PARSERS_METADATA_PARSER_FILEBASE_H_ |
| OLD | NEW |