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

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

Issue 2822773002: [subresource_filter] Force the popup blocker on sites with activation (Closed)
Patch Set: engedy review Created 3 years, 8 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_throttle_manager.h
diff --git a/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.h b/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.h
index 8b659314c47626451427cca69ef63444ae5c91ef..446296538270edd2d17cbcb930676fe1ef1962b3 100644
--- a/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.h
+++ b/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.h
@@ -93,6 +93,10 @@ class ContentSubresourceFilterThrottleManager
content::NavigationHandle* navigation_handle,
std::vector<std::unique_ptr<content::NavigationThrottle>>* throttles);
+ // Returns whether or not the current WebContents is allowed to create a new
+ // window.
+ bool ShouldDisallowNewWindow();
+
VerifiedRuleset::Handle* ruleset_handle_for_testing() {
return ruleset_handle_.get();
}
@@ -124,8 +128,6 @@ class ContentSubresourceFilterThrottleManager
// Calls OnFirstSubresourceLoadDisallowed on the Delegate at most once per
// committed, non-same-page navigation in the main frame.
- // TODO(csharrison): Ensure IPCs from the renderer go through this path when
- // they disallow subresource loads.
void MaybeCallFirstDisallowedLoad();
VerifiedRuleset::Handle* EnsureRulesetHandle();

Powered by Google App Engine
This is Rietveld 408576698