#include "chrome/browser/ssl/ssl_config_service_manager.h"
#include <stdint.h>
#include <algorithm>
#include <string>
#include <string_view>
#include <vector>
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/strings/string_util.h"
#include "base/values.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "components/content_settings/core/browser/content_settings_utils.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/prefs/pref_change_registrar.h"
#include "components/prefs/pref_member.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/remote_set.h"
#include "net/cert/cert_verifier.h"
#include "net/ssl/ssl_cipher_suite_names.h"
#include "net/ssl/ssl_config_service.h"
#include "services/network/public/mojom/network_context.mojom.h"
#include "services/network/public/mojom/ssl_config.mojom.h"
#include "url/url_canon.h"
namespace {
std::vector<std::string> ValueListToStringVector(
const base::Value::List& list) { … }
std::vector<uint16_t> ParseCipherSuites(
const std::vector<std::string>& cipher_strings) { … }
bool SSLProtocolVersionFromString(const std::string& version_str,
network::mojom::SSLVersion* version) { … }
std::vector<std::string> CanonicalizeHostnamePatterns(
const std::vector<std::string>& patterns) { … }
}
SSLConfigServiceManager::SSLConfigServiceManager(PrefService* local_state) { … }
SSLConfigServiceManager::~SSLConfigServiceManager() = default;
void SSLConfigServiceManager::RegisterPrefs(PrefRegistrySimple* registry) { … }
void SSLConfigServiceManager::AddToNetworkContextParams(
network::mojom::NetworkContextParams* network_context_params) { … }
void SSLConfigServiceManager::FlushForTesting() { … }
void SSLConfigServiceManager::OnPreferenceChanged(
PrefService* prefs,
const std::string& pref_name_in) { … }
network::mojom::SSLConfigPtr SSLConfigServiceManager::GetSSLConfigFromPrefs()
const { … }
void SSLConfigServiceManager::OnDisabledCipherSuitesChange(
PrefService* local_state) { … }