summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/binary_feature_extractor.h
diff options
context:
space:
mode:
authorgrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-25 23:26:42 +0000
committergrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-25 23:26:42 +0000
commit03e3925b8017a2bc5cbef29e109ef2ba4e634329 (patch)
treead745d79bddbf069a9307e0fb368cdd970108110 /chrome/browser/safe_browsing/binary_feature_extractor.h
parentef613d38eb0e0070393a245feec64c802e41fbbe (diff)
downloadchromium_src-03e3925b8017a2bc5cbef29e109ef2ba4e634329.zip
chromium_src-03e3925b8017a2bc5cbef29e109ef2ba4e634329.tar.gz
chromium_src-03e3925b8017a2bc5cbef29e109ef2ba4e634329.tar.bz2
Include PE image headers in client download pings.
BUG=none TBR=sky@chromium.org Review URL: https://codereview.chromium.org/205523002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259392 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing/binary_feature_extractor.h')
-rw-r--r--chrome/browser/safe_browsing/binary_feature_extractor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/binary_feature_extractor.h b/chrome/browser/safe_browsing/binary_feature_extractor.h
index bbf9b0d..a06a242 100644
--- a/chrome/browser/safe_browsing/binary_feature_extractor.h
+++ b/chrome/browser/safe_browsing/binary_feature_extractor.h
@@ -16,6 +16,7 @@ class FilePath;
}
namespace safe_browsing {
+class ClientDownloadRequest_ImageHeaders;
class ClientDownloadRequest_SignatureInfo;
class BinaryFeatureExtractor
@@ -29,6 +30,11 @@ class BinaryFeatureExtractor
const base::FilePath& file_path,
ClientDownloadRequest_SignatureInfo* signature_info);
+ // Populates |image_headers| with the PE image headers of |file_path|.
+ virtual void ExtractImageHeaders(
+ const base::FilePath& file_path,
+ ClientDownloadRequest_ImageHeaders* image_headers);
+
protected:
friend class base::RefCountedThreadSafe<BinaryFeatureExtractor>;
virtual ~BinaryFeatureExtractor();