#include "chrome/browser/ssl/generated_https_first_mode_pref.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/metrics/histogram_functions.h"
#include "chrome/browser/extensions/api/settings_private/generated_pref.h"
#include "chrome/browser/extensions/api/settings_private/prefs_util_enums.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/safe_browsing/advanced_protection_status_manager.h"
#include "chrome/browser/safe_browsing/advanced_protection_status_manager_factory.h"
#include "chrome/browser/ssl/https_first_mode_settings_tracker.h"
#include "chrome/browser/ssl/https_upgrades_util.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/extensions/api/settings_private.h"
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_service.h"
settings_api;
const char kGeneratedHttpsFirstModePref[] = …;
GeneratedHttpsFirstModePref::GeneratedHttpsFirstModePref(Profile* profile)
: … { … }
GeneratedHttpsFirstModePref::~GeneratedHttpsFirstModePref() = default;
void GeneratedHttpsFirstModePref::OnSourcePreferencesChanged() { … }
void GeneratedHttpsFirstModePref::OnAdvancedProtectionStatusChanged(
bool enabled) { … }
extensions::settings_private::SetPrefResult
GeneratedHttpsFirstModePref::SetPref(const base::Value* value) { … }
settings_api::PrefObject GeneratedHttpsFirstModePref::GetPrefObject() const { … }
void GeneratedHttpsFirstModePref::ApplyManagementState(
const Profile& profile,
settings_api::PrefObject& pref_object) { … }