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

Unified Diff: content/browser/frame_host/navigation_controller_impl.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/browser/frame_host/navigation_controller_impl.h
diff --git a/content/browser/frame_host/navigation_controller_impl.h b/content/browser/frame_host/navigation_controller_impl.h
index 7a06ba663b67bce4950cd7571f4231ae67749af0..31093c34037c277f5696b2bfb4d61f4e66a54da1 100644
--- a/content/browser/frame_host/navigation_controller_impl.h
+++ b/content/browser/frame_host/navigation_controller_impl.h
@@ -56,6 +56,9 @@ class CONTENT_EXPORT NavigationControllerImpl
virtual int GetPendingEntryIndex() const OVERRIDE;
virtual NavigationEntry* GetTransientEntry() const OVERRIDE;
virtual void SetTransientEntry(NavigationEntry* entry) OVERRIDE;
+ virtual NavigationEntry* GetBlockedPageEntry() const OVERRIDE;
+ virtual void SetBlockedPageEntry(NavigationEntry* entry) OVERRIDE;
+
virtual void LoadURL(const GURL& url,
const Referrer& referrer,
PageTransition type,
@@ -341,6 +344,9 @@ class CONTENT_EXPORT NavigationControllerImpl
typedef std::vector<linked_ptr<NavigationEntryImpl> > NavigationEntries;
NavigationEntries entries_;
+ // Preserved copy of a NavigationEntry when blink blocks a page.
+ linked_ptr<NavigationEntryImpl> blocked_page_entry_;
nasko 2014/06/10 23:21:30 Why not use scoped_ptr here?
+
// An entry we haven't gotten a response for yet. This will be discarded
// when we navigate again. It's used only so we know what the currently
// displayed tab is.

Powered by Google App Engine
This is Rietveld 408576698