Index: content/browser/frame_host/navigation_entry_impl.h |
diff --git a/content/browser/frame_host/navigation_entry_impl.h b/content/browser/frame_host/navigation_entry_impl.h |
index 613f45edb42b039a7f1d1a2a6830610a60c8e4f6..c162d220b63957bbe01c121c93cbfcfaa814f859 100644 |
--- a/content/browser/frame_host/navigation_entry_impl.h |
+++ b/content/browser/frame_host/navigation_entry_impl.h |
@@ -89,6 +89,7 @@ class CONTENT_EXPORT NavigationEntryImpl |
virtual void SetRedirectChain(const std::vector<GURL>& redirects) OVERRIDE; |
virtual const std::vector<GURL>& GetRedirectChain() const OVERRIDE; |
virtual bool IsRestored() const OVERRIDE; |
+ virtual bool GetXssDetected() const OVERRIDE; |
// Once a navigation entry is committed, we should no longer track several |
// pieces of non-persisted state, as documented on the members below. |
@@ -218,6 +219,12 @@ class CONTENT_EXPORT NavigationEntryImpl |
frame_tree_node_id_ = frame_tree_node_id; |
} |
+ // Called when an XSS detected by Blink's XSSAuditor caused the page to |
+ // be blocked. |
+ void set_xss_detected(bool xss_detected) { |
+ xss_detected_ = xss_detected; |
+ } |
+ |
private: |
// WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
// Session/Tab restore save portions of this class so that it can be recreated |
@@ -322,6 +329,10 @@ class CONTENT_EXPORT NavigationEntryImpl |
// value is not needed after the entry commits and is not persisted. |
bool can_load_local_resources_; |
+ // Set when this entry was blocked by Blink's XSSAuditor. |
+ // TODO(tsepez): persist xss_detected_ (see WARNING section above). |
+ bool xss_detected_; |
+ |
// If not empty, the name of the frame to navigate. This field is not |
// persisted, because it is currently only used in tests. |
std::string frame_to_navigate_; |