| Index: chrome/common/safe_browsing/binary_feature_extractor.h
|
| diff --git a/chrome/common/safe_browsing/binary_feature_extractor.h b/chrome/common/safe_browsing/binary_feature_extractor.h
|
| index 73eadbf54eef5264eecebc669a192b2c5a8f43c1..e8bc9a1f61f48f10cb497ff943517b8d0a6a353d 100644
|
| --- a/chrome/common/safe_browsing/binary_feature_extractor.h
|
| +++ b/chrome/common/safe_browsing/binary_feature_extractor.h
|
| @@ -9,6 +9,7 @@
|
| #define CHROME_COMMON_SAFE_BROWSING_BINARY_FEATURE_EXTRACTOR_H_
|
|
|
| #include "base/basictypes.h"
|
| +#include "base/files/file.h"
|
| #include "base/memory/ref_counted.h"
|
|
|
| namespace base {
|
| @@ -45,6 +46,13 @@ class BinaryFeatureExtractor
|
| ExtractHeadersOption options,
|
| ClientDownloadRequest_ImageHeaders* image_headers);
|
|
|
| + // As above, but works with an already-opened file. BinaryFeatureExtractor
|
| + // takes ownership of |file| and closes it when done.
|
| + virtual bool ExtractImageHeadersFromFile(
|
| + base::File file,
|
| + ExtractHeadersOption options,
|
| + ClientDownloadRequest_ImageHeaders* image_headers);
|
| +
|
| // Populates |digests.sha256| with the SHA256 digest of |file_path|.
|
| virtual void ExtractDigest(const base::FilePath& file_path,
|
| ClientDownloadRequest_Digests* digests);
|
|
|