#include "content/test/mock_ssl_host_state_delegate.h"
#include "base/containers/contains.h"
#include "base/functional/callback.h"
#include "url/gurl.h"
namespace content {
MockSSLHostStateDelegate::MockSSLHostStateDelegate() { … }
MockSSLHostStateDelegate::~MockSSLHostStateDelegate() { … }
void MockSSLHostStateDelegate::AllowCert(const std::string& host,
const net::X509Certificate& cert,
int error,
StoragePartition* storage_partition) { … }
void MockSSLHostStateDelegate::Clear(
base::RepeatingCallback<bool(const std::string&)> host_filter) { … }
SSLHostStateDelegate::CertJudgment MockSSLHostStateDelegate::QueryPolicy(
const std::string& host,
const net::X509Certificate& cert,
int error,
StoragePartition* storage_partition) { … }
void MockSSLHostStateDelegate::HostRanInsecureContent(
const std::string& host,
int child_id,
InsecureContentType content_type) { … }
bool MockSSLHostStateDelegate::DidHostRunInsecureContent(
const std::string& host,
int child_id,
InsecureContentType content_type) { … }
void MockSSLHostStateDelegate::AllowHttpForHost(
const std::string& host,
StoragePartition* storage_partition) { … }
bool MockSSLHostStateDelegate::IsHttpAllowedForHost(
const std::string& host,
StoragePartition* storage_partition) { … }
void MockSSLHostStateDelegate::SetHttpsEnforcementForHost(
const std::string& host,
bool enforce,
StoragePartition* storage_partition) { … }
bool MockSSLHostStateDelegate::IsHttpsEnforcedForUrl(
const GURL& url,
StoragePartition* storage_partition) { … }
void MockSSLHostStateDelegate::RevokeUserAllowExceptions(
const std::string& host) { … }
bool MockSSLHostStateDelegate::HasAllowException(
const std::string& host,
StoragePartition* storage_partition) { … }
bool MockSSLHostStateDelegate::HasAllowExceptionForAnyHost(
StoragePartition* storage_partition) { … }
}