OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Utility functions to extract file features for malicious binary detection. | 5 // Utility functions to extract file features for malicious binary detection. |
6 // Each platform has its own implementation of this class. | 6 // Each platform has its own implementation of this class. |
7 | 7 |
8 #ifndef CHROME_COMMON_SAFE_BROWSING_BINARY_FEATURE_EXTRACTOR_H_ | 8 #ifndef CHROME_COMMON_SAFE_BROWSING_BINARY_FEATURE_EXTRACTOR_H_ |
9 #define CHROME_COMMON_SAFE_BROWSING_BINARY_FEATURE_EXTRACTOR_H_ | 9 #define CHROME_COMMON_SAFE_BROWSING_BINARY_FEATURE_EXTRACTOR_H_ |
10 | 10 |
| 11 #include <stddef.h> |
| 12 #include <stdint.h> |
| 13 |
11 #include <string> | 14 #include <string> |
12 | 15 |
13 #include "base/basictypes.h" | |
14 #include "base/files/file.h" | 16 #include "base/files/file.h" |
| 17 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
16 #include "third_party/protobuf/src/google/protobuf/repeated_field.h" | 19 #include "third_party/protobuf/src/google/protobuf/repeated_field.h" |
17 | 20 |
18 namespace base { | 21 namespace base { |
19 class FilePath; | 22 class FilePath; |
20 } | 23 } |
21 | 24 |
22 namespace safe_browsing { | 25 namespace safe_browsing { |
23 class ClientDownloadRequest_Digests; | 26 class ClientDownloadRequest_Digests; |
24 class ClientDownloadRequest_ImageHeaders; | 27 class ClientDownloadRequest_ImageHeaders; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 protected: | 78 protected: |
76 friend class base::RefCountedThreadSafe<BinaryFeatureExtractor>; | 79 friend class base::RefCountedThreadSafe<BinaryFeatureExtractor>; |
77 virtual ~BinaryFeatureExtractor(); | 80 virtual ~BinaryFeatureExtractor(); |
78 | 81 |
79 private: | 82 private: |
80 DISALLOW_COPY_AND_ASSIGN(BinaryFeatureExtractor); | 83 DISALLOW_COPY_AND_ASSIGN(BinaryFeatureExtractor); |
81 }; | 84 }; |
82 } // namespace safe_browsing | 85 } // namespace safe_browsing |
83 | 86 |
84 #endif // CHROME_COMMON_SAFE_BROWSING_BINARY_FEATURE_EXTRACTOR_H_ | 87 #endif // CHROME_COMMON_SAFE_BROWSING_BINARY_FEATURE_EXTRACTOR_H_ |
OLD | NEW |