chromium/components/safe_browsing/content/renderer/phishing_classifier/features.cc

// Copyright 2010 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/safe_browsing/content/renderer/phishing_classifier/features.h"

#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "base/metrics/histogram_macros.h"

namespace safe_browsing {

const size_t FeatureMap::kMaxFeatureMapSize =;

FeatureMap::FeatureMap() {}
FeatureMap::~FeatureMap() {}

bool FeatureMap::AddBooleanFeature(const std::string& name) {}

bool FeatureMap::AddRealFeature(const std::string& name, double value) {}

void FeatureMap::Clear() {}

BASE_FEATURE();

BASE_FEATURE();

constexpr base::FeatureParam<int> kClientSideDetectionRetryLimitTime{};

namespace features {
// URL host features
const char kUrlHostIsIpAddress[] =;
const char kUrlTldToken[] =;
const char kUrlDomainToken[] =;
const char kUrlOtherHostToken[] =;

// URL host aggregate features
const char kUrlNumOtherHostTokensGTOne[] =;
const char kUrlNumOtherHostTokensGTThree[] =;

// URL path features
const char kUrlPathToken[] =;

// DOM HTML form features
const char kPageHasForms[] =;
const char kPageActionOtherDomainFreq[] =;
const char kPageActionURL[] =;
const char kPageHasTextInputs[] =;
const char kPageHasPswdInputs[] =;
const char kPageHasRadioInputs[] =;
const char kPageHasCheckInputs[] =;

// DOM HTML link features
const char kPageExternalLinksFreq[] =;
const char kPageLinkDomain[] =;
const char kPageSecureLinksFreq[] =;

// DOM HTML script features
const char kPageNumScriptTagsGTOne[] =;
const char kPageNumScriptTagsGTSix[] =;

// Other DOM HTML features
const char kPageImgOtherDomainFreq[] =;

// Page term features
const char kPageTerm[] =;

}  // namespace features
}  // namespace safe_browsing