Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: chrome/utility/safe_browsing/mac/hfs.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/utility/safe_browsing/mac/dmg_test_utils.cc ('k') | chrome/utility/safe_browsing/mac/hfs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698