#include "services/network/shared_dictionary/shared_dictionary_access_checker.h"
#include "net/base/isolation_info.h"
#include "net/shared_dictionary/shared_dictionary_isolation_key.h"
#include "services/network/cookie_manager.h"
#include "services/network/cookie_settings.h"
#include "services/network/network_context.h"
namespace network {
SharedDictionaryAccessChecker::SharedDictionaryAccessChecker(
NetworkContext& context,
mojo::PendingRemote<mojom::SharedDictionaryAccessObserver>
shared_dictionary_observer_remote)
: … { … }
SharedDictionaryAccessChecker::SharedDictionaryAccessChecker(
NetworkContext& context,
mojom::SharedDictionaryAccessObserver* shared_dictionary_observer)
: … { … }
SharedDictionaryAccessChecker::~SharedDictionaryAccessChecker() = default;
bool SharedDictionaryAccessChecker::CheckAllowedToWriteAndReport(
const GURL& dictionary_url,
const net::SiteForCookies& site_for_cookies,
const net::IsolationInfo& isolation_info) { … }
bool SharedDictionaryAccessChecker::CheckAllowedToReadAndReport(
const GURL& target_resource_url,
const net::SiteForCookies& site_for_cookies,
const net::IsolationInfo& isolation_info) { … }
bool SharedDictionaryAccessChecker::IsAllowedToUseSharedDictionary(
const GURL& url,
const net::SiteForCookies& site_for_cookies,
const net::IsolationInfo& isolation_info) { … }
}