chromium/components/safe_browsing/core/common/features.cc

// Copyright 2017 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/core/common/features.h"

#include <stddef.h>

#include <algorithm>
#include <utility>

#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "base/metrics/user_metrics_action.h"
#include "base/system/sys_info.h"
#include "base/values.h"
#include "build/build_config.h"
#include "build/buildflag.h"
#include "components/safe_browsing/buildflags.h"

namespace safe_browsing {
// Please define any new SafeBrowsing related features in this file, and add
// them to the ExperimentalFeaturesList below to start displaying their status
// on the chrome://safe-browsing page.

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

// If true, a delayed warning will be shown when the user clicks on the page.
// If false, the warning won't be shown, but a metric will be recorded on the
// first click.
const base::FeatureParam<bool> kDelayedWarningsEnableMouseClicks{};

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

// A default value of -1 indicates configuration error.
const base::FeatureParam<int> kDownloadWarningSurveyType{};

const base::FeatureParam<int> kDownloadWarningSurveyIgnoreDelaySeconds{};

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

const base::FeatureParam<int>
    kExtensionTelemetryEnterpriseReportingIntervalSeconds{};

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

constexpr base::FeatureParam<std::string> kHashPrefixRealTimeLookupsRelayUrl{};

BASE_FEATURE();

BASE_FEATURE();

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

BASE_FEATURE();

BASE_FEATURE();
constexpr base::FeatureParam<int> kHashDatabaseOffsetMapBytesPerOffset{};

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

constexpr base::FeatureParam<std::string> kRedWarningSurveyTriggerId{};
constexpr base::FeatureParam<std::string> kRedWarningSurveyReportTypeFilter{};
constexpr base::FeatureParam<std::string> kRedWarningSurveyDidProceedFilter{};

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

#if BUILDFLAG(IS_ANDROID)
BASE_FEATURE(kTailoredSecurityObserverRetries,
             "TailoredSecurityObserverRetries",
             base::FEATURE_ENABLED_BY_DEFAULT);
#endif

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

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

// Returns the list of the experimental features that are enabled or disabled,
// as part of currently running Safe Browsing experiments.
base::Value::List GetFeatureStatusList() {}

}  // namespace safe_browsing