#include "chrome/common/safe_browsing/binary_feature_extractor.h"
#include <memory>
#include <utility>
#include "base/containers/heap_array.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/memory_mapped_file.h"
#include "base/metrics/histogram_functions.h"
#include "components/safe_browsing/core/common/proto/csd.pb.h"
#include "crypto/secure_hash.h"
#include "crypto/sha2.h"
namespace safe_browsing {
BinaryFeatureExtractor::BinaryFeatureExtractor() { … }
BinaryFeatureExtractor::~BinaryFeatureExtractor() { … }
bool BinaryFeatureExtractor::ExtractImageFeatures(
const base::FilePath& file_path,
ExtractHeadersOption options,
ClientDownloadRequest_ImageHeaders* image_headers,
google::protobuf::RepeatedPtrField<std::string>* signed_data) { … }
bool BinaryFeatureExtractor::ExtractImageFeaturesFromFile(
base::File file,
ExtractHeadersOption options,
ClientDownloadRequest_ImageHeaders* image_headers,
google::protobuf::RepeatedPtrField<std::string>* signed_data) { … }
void BinaryFeatureExtractor::ExtractDigest(
const base::FilePath& file_path,
ClientDownloadRequest_Digests* digests) { … }
}