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

Unified Diff: Source/core/dom/SecurityContext.h

Issue 845303003: Tag SecurityContext objects as being hosted in reserved IP ranges. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Skip 'about:blank', 'swappedout://', etc. Created 5 years, 11 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: Source/core/dom/SecurityContext.h
diff --git a/Source/core/dom/SecurityContext.h b/Source/core/dom/SecurityContext.h
index e5c2e4ec593fa6c8c3cef357e7a522973eed0eb2..a83a7eb36781f527b914854d6ce0fbdf6a0bcd5e 100644
--- a/Source/core/dom/SecurityContext.h
+++ b/Source/core/dom/SecurityContext.h
@@ -55,6 +55,9 @@ public:
bool isSandboxed(SandboxFlags mask) const { return m_sandboxFlags & mask; }
void enforceSandboxFlags(SandboxFlags mask);
+ void setHostedInReservedIPRange() { m_hostedInReservedIPRange = true; }
+ bool isHostedInReservedIPRange() { return m_hostedInReservedIPRange; }
jochen (gone - plz use gerrit) 2015/01/13 15:04:55 const
+
protected:
SecurityContext();
virtual ~SecurityContext();
@@ -70,6 +73,8 @@ private:
RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy;
SandboxFlags m_sandboxFlags;
+
+ bool m_hostedInReservedIPRange;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698