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

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

Issue 304313003: Allow view-source of pages fully-blocked by Blink's XSS filter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add Unit Test. Created 6 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_controller.h
diff --git a/content/public/browser/navigation_controller.h b/content/public/browser/navigation_controller.h
index 08ea0b9985df75e9388b91963f6ac7accea1ff82..26945746197acdabca8bc517b624913bd6dc4597 100644
--- a/content/public/browser/navigation_controller.h
+++ b/content/public/browser/navigation_controller.h
@@ -290,6 +290,11 @@ class NavigationController {
// Note that adding a transient entry does not change the active contents.
virtual void SetTransientEntry(NavigationEntry* entry) = 0;
+ // Keep a NavigationEntry apart from the regular history to be used to
+ // regenerate source after Blink blocks a page.
+ virtual NavigationEntry* GetBlockedPageEntry() const = 0;
+ virtual void SetBlockedPageEntry(NavigationEntry* entry) = 0;
nasko 2014/06/10 23:21:30 This is not called outside of content/, so it shou
+
// New navigations -----------------------------------------------------------
// Loads the specified URL, specifying extra http headers to add to the

Powered by Google App Engine
This is Rietveld 408576698