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 #include <iostream> | 5 #include <iostream> |
6 #include <sstream> | 6 #include <sstream> |
7 | 7 |
8 #include "chrome/browser/parsers/metadata_parser_filebase.h" | 8 #include "chrome/browser/parsers/metadata_parser_filebase.h" |
9 | 9 |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/utf_string_conversions.h" |
12 | 13 |
13 FileMetadataParser::FileMetadataParser(const FilePath& path) | 14 FileMetadataParser::FileMetadataParser(const FilePath& path) |
14 : MetadataParser(path) { | 15 : MetadataParser(path) { |
15 path_ = path; | 16 path_ = path; |
16 } | 17 } |
17 | 18 |
18 bool FileMetadataParser::Parse() { | 19 bool FileMetadataParser::Parse() { |
19 std::string value; | 20 std::string value; |
20 int64 size; | 21 int64 size; |
21 if (file_util::GetFileSize(path_, &size)) { | 22 if (file_util::GetFileSize(path_, &size)) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 return properties_.size(); | 66 return properties_.size(); |
66 } | 67 } |
67 | 68 |
68 bool FileMetadataPropertyIterator::IsEnd() { | 69 bool FileMetadataPropertyIterator::IsEnd() { |
69 if (it == properties_.end()) { | 70 if (it == properties_.end()) { |
70 return true; | 71 return true; |
71 } else { | 72 } else { |
72 return false; | 73 return false; |
73 } | 74 } |
74 } | 75 } |
OLD | NEW |