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

Unified Diff: chrome/browser/subresource_filter/chrome_subresource_filter_client.h

Issue 2858483003: [subresource_filter] Move throttle insertion into the client (Closed)
Patch Set: fix rebase Created 3 years, 7 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: chrome/browser/subresource_filter/chrome_subresource_filter_client.h
diff --git a/chrome/browser/subresource_filter/chrome_subresource_filter_client.h b/chrome/browser/subresource_filter/chrome_subresource_filter_client.h
index ac3a083d32cc3f5d72c72f6be99b466dd2e54c71..c1b8d152f62b03d5e417ac2d473bf657c633a109 100644
--- a/chrome/browser/subresource_filter/chrome_subresource_filter_client.h
+++ b/chrome/browser/subresource_filter/chrome_subresource_filter_client.h
@@ -5,8 +5,10 @@
#ifndef CHROME_BROWSER_SUBRESOURCE_FILTER_CHROME_SUBRESOURCE_FILTER_CLIENT_H_
#define CHROME_BROWSER_SUBRESOURCE_FILTER_CHROME_SUBRESOURCE_FILTER_CLIENT_H_
+#include <memory>
#include <set>
#include <string>
+#include <vector>
#include "base/macros.h"
#include "components/content_settings/core/common/content_settings.h"
@@ -17,6 +19,7 @@ class GURL;
namespace content {
class NavigationHandle;
+class NavigationThrottle;
class WebContents;
} // namespace content
@@ -71,6 +74,10 @@ class ChromeSubresourceFilterClient
explicit ChromeSubresourceFilterClient(content::WebContents* web_contents);
~ChromeSubresourceFilterClient() override;
+ void MaybeAppendNavigationThrottles(
+ content::NavigationHandle* navigation_handle,
+ std::vector<std::unique_ptr<content::NavigationThrottle>>* throttles);
+
// SubresourceFilterClient:
void ToggleNotificationVisibility(bool visibility) override;
bool ShouldSuppressActivation(
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/subresource_filter/chrome_subresource_filter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698