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

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

Issue 2667303003: Disable subresource filtering on page reloads. (Closed)
Patch Set: move ui/base to public_deps Created 3 years, 10 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 49727a6ed25226998f872f1f7a53540c4f796b50..0ec55f403a2cf55b0cb26d26cdb4ee3541a688a3 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
@@ -17,6 +17,7 @@
#include "components/safe_browsing_db/util.h"
#include "components/subresource_filter/content/common/document_load_statistics.h"
#include "content/public/browser/web_contents_observer.h"
+#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
namespace content {
@@ -91,6 +92,8 @@ class ContentSubresourceFilterDriverFactory
ContentSubresourceFilterDriver* DriverFromFrameHost(
content::RenderFrameHost* render_frame_host);
+ void ResetActivationState();
+
void OnFirstSubresourceLoadDisallowed();
void OnDocumentLoadStatistics(const DocumentLoadStatistics& statistics);
@@ -121,7 +124,9 @@ class ContentSubresourceFilterDriverFactory
// NavigationHandle to ease unit tests.
void ReadyToCommitNavigationInternal(
content::RenderFrameHost* render_frame_host,
- const GURL& url);
+ const GURL& url,
+ const content::Referrer& referrer,
+ ui::PageTransition page_transition);
bool DidURLMatchCurrentActivationList(const GURL& url) const;

Powered by Google App Engine
This is Rietveld 408576698