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

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

Issue 2042483002: Fix web_accesible_resources enforcement for Site Isolation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes for code review, removed filter exceptions. Created 4 years, 6 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 5876343db0decd9bb6933f6243299aa81b825d06..4706111c055b9b22260f1cc951b917d28d74a55c 100644
--- a/content/public/browser/navigation_throttle.h
+++ b/content/public/browser/navigation_throttle.h
@@ -32,6 +32,12 @@ class CONTENT_EXPORT NavigationThrottle {
// Cancels the navigation and makes the requester of the navigation acts
// like the request was never made.
CANCEL_AND_IGNORE,
+
+ // Blocks a navigation due to rules asserted before the request is made.
+ // This can only be returned from WillStartRequest. This will result in an
+ // error page for net::ERR_BLOCKED_BY_CLIENT being loaded in the frame that
+ // is navigated.
+ BLOCK_REQUEST,
};
NavigationThrottle(NavigationHandle* navigation_handle);

Powered by Google App Engine
This is Rietveld 408576698