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

Unified Diff: content/browser/frame_host/ancestor_throttle.h

Issue 2655463006: PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Rebase. Created 3 years, 9 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: content/browser/frame_host/ancestor_throttle.h
diff --git a/content/browser/frame_host/ancestor_throttle.h b/content/browser/frame_host/ancestor_throttle.h
index a2b9a6fd2930b17eb179dd7886dda7d353b50200..5161b0ce25d21952a2a7bc578f8f8d3784cda503 100644
--- a/content/browser/frame_host/ancestor_throttle.h
+++ b/content/browser/frame_host/ancestor_throttle.h
@@ -38,6 +38,8 @@ class CONTENT_EXPORT AncestorThrottle : public NavigationThrottle {
~AncestorThrottle() override;
+ NavigationThrottle::ThrottleCheckResult WillStartRequest() override;
+ NavigationThrottle::ThrottleCheckResult WillRedirectRequest() override;
NavigationThrottle::ThrottleCheckResult WillProcessResponse() override;
private:
@@ -56,6 +58,9 @@ class CONTENT_EXPORT AncestorThrottle : public NavigationThrottle {
HeaderDisposition ParseHeader(const net::HttpResponseHeaders* headers,
std::string* header_value);
+ NavigationThrottle::ThrottleCheckResult CheckContentSecurityPolicyFrameSrc(
+ bool is_redirect);
+
DISALLOW_COPY_AND_ASSIGN(AncestorThrottle);
};

Powered by Google App Engine
This is Rietveld 408576698