Index: components/subresource_filter/content/browser/subresource_filter_client.h |
diff --git a/components/subresource_filter/content/browser/subresource_filter_client.h b/components/subresource_filter/content/browser/subresource_filter_client.h |
index eb61f072ae1be11d63a14d2d96bdedbe95243b3e..7a11c40ff118ad20b3ff641c1309b4d5857e546d 100644 |
--- a/components/subresource_filter/content/browser/subresource_filter_client.h |
+++ b/components/subresource_filter/content/browser/subresource_filter_client.h |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_CLIENT_H_ |
-#define COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_CLIENT_H_ |
+#ifndef COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBRESOURCE_FILTER_CLIENT_H_ |
+#define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBRESOURCE_FILTER_CLIENT_H_ |
#include "components/subresource_filter/content/browser/verified_ruleset_dealer.h" |
#include "content/public/browser/web_contents.h" |
@@ -16,6 +16,8 @@ class NavigationHandle; |
namespace subresource_filter { |
+struct ActivationState; |
+ |
class SubresourceFilterClient { |
public: |
virtual ~SubresourceFilterClient() = default; |
@@ -42,8 +44,12 @@ class SubresourceFilterClient { |
virtual void WhitelistInCurrentWebContents(const GURL& url) = 0; |
virtual VerifiedRulesetDealer::Handle* GetRulesetDealer() = 0; |
+ |
+ // Called when the main frame is activated in this WebContents, and the signal |
+ // is send to the renderer. |
+ virtual void OnPageActivated(const ActivationState& state) = 0; |
}; |
} // namespace subresource_filter |
-#endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_CLIENT_H_ |
+#endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBRESOURCE_FILTER_CLIENT_H_ |