#include "chrome/browser/enterprise/data_controls/chrome_rules_service.h"
#include "base/memory/ptr_util.h"
#include "base/no_destructor.h"
#include "chrome/browser/profiles/profile.h"
#include "components/enterprise/data_controls/core/browser/features.h"
#include "components/enterprise/data_controls/core/browser/prefs.h"
#include "components/prefs/pref_service.h"
namespace data_controls {
ChromeRulesService::ChromeRulesService(content::BrowserContext* browser_context)
: … { … }
ChromeRulesService::~ChromeRulesService() = default;
Verdict ChromeRulesService::GetPrintVerdict(
const GURL& printed_page_url) const { … }
Verdict ChromeRulesService::GetPasteVerdict(
const content::ClipboardEndpoint& source,
const content::ClipboardEndpoint& destination,
const content::ClipboardMetadata& metadata) const { … }
Verdict ChromeRulesService::GetCopyRestrictedBySourceVerdict(
const GURL& source) const { … }
Verdict ChromeRulesService::GetCopyToOSClipboardVerdict(
const GURL& source) const { … }
bool ChromeRulesService::BlockScreenshots(const GURL& url) const { … }
ActionSource ChromeRulesService::GetAsActionSource(
const content::ClipboardEndpoint& endpoint) const { … }
ActionDestination ChromeRulesService::GetAsActionDestination(
const content::ClipboardEndpoint& endpoint) const { … }
template <typename ActionSourceOrDestination>
ActionSourceOrDestination ChromeRulesService::ExtractPasteActionContext(
const content::ClipboardEndpoint& endpoint) const { … }
RulesService* ChromeRulesServiceFactory::GetForBrowserContext(
content::BrowserContext* context) { … }
ChromeRulesServiceFactory* ChromeRulesServiceFactory::GetInstance() { … }
ChromeRulesServiceFactory::ChromeRulesServiceFactory()
: … { … }
ChromeRulesServiceFactory::~ChromeRulesServiceFactory() = default;
std::unique_ptr<KeyedService>
ChromeRulesServiceFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }
}