Index: Source/platform/weborigin/SecurityOrigin.h |
diff --git a/Source/platform/weborigin/SecurityOrigin.h b/Source/platform/weborigin/SecurityOrigin.h |
index 7112208474fcb51d3926ef00043a085e1fae7de8..a2f595a613b7e1ccb516d3f8bbfb28b42f14eafc 100644 |
--- a/Source/platform/weborigin/SecurityOrigin.h |
+++ b/Source/platform/weborigin/SecurityOrigin.h |
@@ -164,6 +164,11 @@ public: |
// Returns true if the host is one of 127.0.0.1/8, ::1/128, or "localhost". |
bool isLocalhost() const; |
+ // Returns true if the host is reserved, as per IANA's IPv4 and IPv6 registries: |
+ // http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xhtml and |
+ // http://www.iana.org/assignments/ipv6-address-space/ipv6-address-space.xhtml |
+ bool isReservedIPAddress() const; |
+ |
// The origin is a globally unique identifier assigned when the Document is |
// created. http://www.whatwg.org/specs/web-apps/current-work/#sandboxOrigin |
// |