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

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

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Fix navigation transition type. 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
« no previous file with comments | « content/public/browser/navigation_handle.h ('k') | content/public/test/navigation_simulator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/navigation_throttle.h
diff --git a/content/public/browser/navigation_throttle.h b/content/public/browser/navigation_throttle.h
index eb079fa40f64618dea62f18e6cb89bbab9573f7a..f505c86783a82e377d1642170dedd2e466530c07 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.
« no previous file with comments | « content/public/browser/navigation_handle.h ('k') | content/public/test/navigation_simulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698