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/udif.h" | 5 #include "chrome/utility/safe_browsing/mac/udif.h" |
6 | 6 |
7 #include <bzlib.h> | 7 #include <bzlib.h> |
8 #include <CoreFoundation/CoreFoundation.h> | 8 #include <CoreFoundation/CoreFoundation.h> |
9 #include <libkern/OSByteOrder.h> | 9 #include <libkern/OSByteOrder.h> |
10 #include <uuid/uuid.h> | 10 #include <uuid/uuid.h> |
11 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
13 | 13 |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/mac/foundation_util.h" | 15 #include "base/mac/foundation_util.h" |
16 #include "base/mac/scoped_cftyperef.h" | 16 #include "base/mac/scoped_cftyperef.h" |
| 17 #include "base/macros.h" |
17 #include "base/numerics/safe_math.h" | 18 #include "base/numerics/safe_math.h" |
18 #include "base/strings/sys_string_conversions.h" | 19 #include "base/strings/sys_string_conversions.h" |
19 #include "chrome/utility/safe_browsing/mac/convert_big_endian.h" | 20 #include "chrome/utility/safe_browsing/mac/convert_big_endian.h" |
20 #include "chrome/utility/safe_browsing/mac/read_stream.h" | 21 #include "chrome/utility/safe_browsing/mac/read_stream.h" |
21 #include "third_party/zlib/zlib.h" | 22 #include "third_party/zlib/zlib.h" |
22 | 23 |
23 namespace safe_browsing { | 24 namespace safe_browsing { |
24 namespace dmg { | 25 namespace dmg { |
25 | 26 |
26 #pragma pack(push, 1) | 27 #pragma pack(push, 1) |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 << chunk_->compressed_offset; | 786 << chunk_->compressed_offset; |
786 return false; | 787 return false; |
787 } | 788 } |
788 return true; | 789 return true; |
789 } | 790 } |
790 | 791 |
791 } // namespace | 792 } // namespace |
792 | 793 |
793 } // namespace dmg | 794 } // namespace dmg |
794 } // namespace safe_browsing | 795 } // namespace safe_browsing |
OLD | NEW |