#include "components/enterprise/content/clipboard_restriction_service.h"
#include "components/enterprise/content/pref_names.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/policy/core/common/policy_pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/strings/grit/components_strings.h"
#include "components/url_matcher/url_util.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/browser_context.h"
#include "ui/base/l10n/l10n_util.h"
ClipboardRestrictionService::ClipboardRestrictionService(
PrefService* pref_service)
: … { … }
ClipboardRestrictionService::~ClipboardRestrictionService() = default;
bool ClipboardRestrictionService::IsUrlAllowedToCopy(
const GURL& url,
size_t data_size_in_bytes,
std::u16string* replacement_data) const { … }
void ClipboardRestrictionService::UpdateSettings() { … }
ClipboardRestrictionServiceFactory*
ClipboardRestrictionServiceFactory::GetInstance() { … }
ClipboardRestrictionService*
ClipboardRestrictionServiceFactory::GetForBrowserContext(
content::BrowserContext* context) { … }
ClipboardRestrictionServiceFactory::ClipboardRestrictionServiceFactory()
: … { … }
ClipboardRestrictionServiceFactory::~ClipboardRestrictionServiceFactory() =
default;
content::BrowserContext*
ClipboardRestrictionServiceFactory::GetBrowserContextToUse(
content::BrowserContext* context) const { … }
KeyedService* ClipboardRestrictionServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const { … }