Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(936)

Unified Diff: components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h

Issue 2243863002: Send activation signal to subframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
diff --git a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
index 84f1f37c361a12c8359a5c53a463a057bf601191..e684b2f7a0f5551784e0d0a83fff01888ebe14fb 100644
--- a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
+++ b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
@@ -135,6 +135,14 @@ class ContentSubresourceFilterDriverFactory
// Checks pre-conditions and sets UI visibility accordingly.
void PromptUserIfNeeded(content::RenderFrameHost* render_frame_host);
+ // Checks base on the value of |urr| and current activation scope if
+ // activation signal should be sent.
+ bool ShouldActivateForMainFrameURL(const GURL& url) const;
+ void ActivateForFrameHostIfNeeded(content::RenderFrameHost* render_frame_host,
+ const GURL& url);
+
+ void set_activation_state(const ActivationState& new_activation_state);
+
static const char kWebContentsUserDataKey[];
FrameHostToOwnedDriverMap frame_drivers_;

Powered by Google App Engine
This is Rietveld 408576698