OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/utility/safe_browsing/mac/hfs.h" | 5 #include "chrome/utility/safe_browsing/mac/hfs.h" |
6 | 6 |
7 #include <libkern/OSByteOrder.h> | 7 #include <libkern/OSByteOrder.h> |
| 8 #include <stddef.h> |
8 #include <sys/stat.h> | 9 #include <sys/stat.h> |
9 | 10 |
10 #include <map> | 11 #include <map> |
11 #include <set> | 12 #include <set> |
12 #include <vector> | 13 #include <vector> |
13 | 14 |
14 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/macros.h" |
15 #include "base/numerics/safe_math.h" | 17 #include "base/numerics/safe_math.h" |
16 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
17 #include "chrome/utility/safe_browsing/mac/convert_big_endian.h" | 19 #include "chrome/utility/safe_browsing/mac/convert_big_endian.h" |
18 #include "chrome/utility/safe_browsing/mac/read_stream.h" | 20 #include "chrome/utility/safe_browsing/mac/read_stream.h" |
19 | 21 |
20 namespace safe_browsing { | 22 namespace safe_browsing { |
21 namespace dmg { | 23 namespace dmg { |
22 | 24 |
23 // UTF-16 character for file path seprator. | 25 // UTF-16 character for file path seprator. |
24 static const uint16_t kFilePathSeparator = '/'; | 26 static const uint16_t kFilePathSeparator = '/'; |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 return object; | 641 return object; |
640 } | 642 } |
641 | 643 |
642 bool HFSBTreeIterator::IsKeyUnexported(const base::string16& key) { | 644 bool HFSBTreeIterator::IsKeyUnexported(const base::string16& key) { |
643 return key == kHFSDirMetadataFolder || | 645 return key == kHFSDirMetadataFolder || |
644 key == kHFSMetadataFolder; | 646 key == kHFSMetadataFolder; |
645 } | 647 } |
646 | 648 |
647 } // namespace dmg | 649 } // namespace dmg |
648 } // namespace safe_browsing | 650 } // namespace safe_browsing |
OLD | NEW |