#include "components/url_rewrite/browser/url_request_rewrite_rules_manager.h"
#include "components/url_rewrite/browser/url_request_rewrite_rules_validation.h"
#include "content/public/browser/web_contents.h"
#include "third_party/blink/public/common/associated_interfaces/associated_interface_provider.h"
namespace url_rewrite {
UrlRequestRewriteRulesManager::UrlRequestRewriteRulesManager() = default;
UrlRequestRewriteRulesManager::~UrlRequestRewriteRulesManager() { … }
bool UrlRequestRewriteRulesManager::AddWebContents(
content::WebContents* web_contents) { … }
bool UrlRequestRewriteRulesManager::RemoveWebContents(
content::WebContents* web_contents) { … }
bool UrlRequestRewriteRulesManager::OnRulesUpdated(
mojom::UrlRequestRewriteRulesPtr rules) { … }
const scoped_refptr<UrlRequestRewriteRules>&
UrlRequestRewriteRulesManager::GetCachedRules() const { … }
size_t UrlRequestRewriteRulesManager::GetUpdatersSizeForTesting() const { … }
UrlRequestRewriteRulesManager::Updater::Updater(
content::WebContents* web_contents,
const scoped_refptr<UrlRequestRewriteRules>& cached_rules)
: … { … }
UrlRequestRewriteRulesManager::Updater::~Updater() { … }
void UrlRequestRewriteRulesManager::Updater::OnRulesUpdated(
const scoped_refptr<UrlRequestRewriteRules>& cached_rules) { … }
void UrlRequestRewriteRulesManager::Updater::MaybeRegisterExistingRenderFrame(
content::RenderFrameHost* render_frame_host) { … }
void UrlRequestRewriteRulesManager::Updater::RenderFrameCreated(
content::RenderFrameHost* render_frame_host) { … }
void UrlRequestRewriteRulesManager::Updater::RenderFrameDeleted(
content::RenderFrameHost* render_frame_host) { … }
}