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

Side by Side Diff: chrome/utility/safe_browsing/mac/udif.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, 11 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/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
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
OLDNEW
« no previous file with comments | « chrome/utility/safe_browsing/mac/udif.h ('k') | chrome/utility/safe_browsing/mac/udif_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698