#include "extensions/browser/api/declarative_net_request/web_contents_helper.h"
#include "base/check.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/api/declarative_net_request/rules_monitor_service.h"
#include "extensions/browser/api/declarative_net_request/ruleset_manager.h"
namespace extensions::declarative_net_request {
namespace {
RulesetManager* GetRulesetManager(content::BrowserContext* context) { … }
}
WebContentsHelper::WebContentsHelper(content::WebContents* web_contents)
: … { … }
WebContentsHelper::~WebContentsHelper() = default;
void WebContentsHelper::RenderFrameCreated(
content::RenderFrameHost* render_frame_host) { … }
void WebContentsHelper::RenderFrameDeleted(
content::RenderFrameHost* render_frame_host) { … }
void WebContentsHelper::DidFinishNavigation(
content::NavigationHandle* navigation_handle) { … }
}