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

Unified Diff: content/public/browser/navigation_throttle.h

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Addressed comments, made redirect response PlzNavigate-only. 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: content/public/browser/navigation_throttle.h
diff --git a/content/public/browser/navigation_throttle.h b/content/public/browser/navigation_throttle.h
index 109a2fc4760f79c66796aa76b14fc135b3e07301..bdbe8afcf19e6781336fec4b75020820c5c1b2ba 100644
--- a/content/public/browser/navigation_throttle.h
+++ b/content/public/browser/navigation_throttle.h
@@ -40,6 +40,12 @@ class CONTENT_EXPORT NavigationThrottle {
// is navigated.
BLOCK_REQUEST,
+ // Blocks a navigation taking place in a subframe, and collapses the frame
+ // owner element in the parent document (i.e. removes it from the layout).
+ // This can only be returned from WillStartRequest, and also from
+ // WillRedirectRequest when PlzNavigate is enabled.
+ BLOCK_REQUEST_AND_COLLAPSE,
+
// Blocks a navigation due to rules asserted by a response (for instance,
// embedding restrictions like 'X-Frame-Options'). This result will only
// be returned from WillProcessResponse.

Powered by Google App Engine
This is Rietveld 408576698