#include "chrome/browser/enterprise/connectors/device_trust/device_trust_connector_service.h"
#include "base/check.h"
#include "components/enterprise/device_trust/prefs.h"
#include "components/prefs/pref_service.h"
#include "components/url_matcher/url_matcher.h"
#include "components/url_matcher/url_util.h"
#include "url/gurl.h"
namespace enterprise_connectors {
DeviceTrustConnectorService::DeviceTrustConnectorService(
PrefService* profile_prefs)
: … { … }
DeviceTrustConnectorService::~DeviceTrustConnectorService() = default;
bool DeviceTrustConnectorService::IsConnectorEnabled() const { … }
const std::set<DTCPolicyLevel> DeviceTrustConnectorService::Watches(
const GURL& url) const { … }
void DeviceTrustConnectorService::AddObserver(
std::unique_ptr<PolicyObserver> observer) { … }
const std::set<DTCPolicyLevel>
DeviceTrustConnectorService::GetEnabledInlinePolicyLevels() const { … }
DeviceTrustConnectorService::DTCPolicyDetails::DTCPolicyDetails(
const std::string& pref)
: … { … }
DeviceTrustConnectorService::DTCPolicyDetails::DTCPolicyDetails(
DTCPolicyDetails&& other) = default;
DeviceTrustConnectorService::DTCPolicyDetails&
DeviceTrustConnectorService::DTCPolicyDetails::operator=(
DeviceTrustConnectorService::DTCPolicyDetails&& other) = default;
DeviceTrustConnectorService::DTCPolicyDetails::~DTCPolicyDetails() = default;
void DeviceTrustConnectorService::OnPolicyUpdated(const DTCPolicyLevel& level,
const std::string& pref) { … }
void DeviceTrustConnectorService::OnInlinePolicyEnabled(DTCPolicyLevel level) { … }
void DeviceTrustConnectorService::OnInlinePolicyDisabled(DTCPolicyLevel level) { … }
const base::Value::List* DeviceTrustConnectorService::GetPolicyUrlPatterns(
const std::string& pref) const { … }
}