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

Side by Side Diff: chrome/common/safe_browsing/binary_feature_extractor_mac.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/common/safe_browsing/binary_feature_extractor.h" 5 #include "chrome/common/safe_browsing/binary_feature_extractor.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include "chrome/common/safe_browsing/csd.pb.h" 10 #include "chrome/common/safe_browsing/csd.pb.h"
8 #include "chrome/common/safe_browsing/mach_o_image_reader_mac.h" 11 #include "chrome/common/safe_browsing/mach_o_image_reader_mac.h"
9 12
10 namespace safe_browsing { 13 namespace safe_browsing {
11 14
12 bool BinaryFeatureExtractor::ExtractImageFeaturesFromData( 15 bool BinaryFeatureExtractor::ExtractImageFeaturesFromData(
13 const uint8_t* data, size_t data_size, 16 const uint8_t* data, size_t data_size,
14 ExtractHeadersOption options, 17 ExtractHeadersOption options,
15 ClientDownloadRequest_ImageHeaders* image_headers, 18 ClientDownloadRequest_ImageHeaders* image_headers,
16 google::protobuf::RepeatedPtrField<std::string>* signed_data) { 19 google::protobuf::RepeatedPtrField<std::string>* signed_data) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 reinterpret_cast<const char*>(&code_signature[0]), 59 reinterpret_cast<const char*>(&code_signature[0]),
57 code_signature.size()); 60 code_signature.size());
58 } 61 }
59 } 62 }
60 } 63 }
61 64
62 return true; 65 return true;
63 } 66 }
64 67
65 } // namespace safe_browsing 68 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/common/safe_browsing/binary_feature_extractor.h ('k') | chrome/common/safe_browsing/binary_feature_extractor_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698