Index: third_party/WebKit/Source/core/dom/SecurityContext.cpp |
diff --git a/third_party/WebKit/Source/core/dom/SecurityContext.cpp b/third_party/WebKit/Source/core/dom/SecurityContext.cpp |
index a37ff6b8230baa1b56ff5bf886d6a06243d97da4..30d5754e0bb1f6ff7c4cef9bdcadff2bb8d8d453 100644 |
--- a/third_party/WebKit/Source/core/dom/SecurityContext.cpp |
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.cpp |
@@ -82,4 +82,12 @@ void SecurityContext::enforceSandboxFlags(SandboxFlags mask) |
} |
} |
+WebURLRequest::AddressSpace SecurityContext::addressSpace() const |
+{ |
+ if (m_hostedInReservedIPRange) |
+ return securityOrigin()->isLocalhost() ? WebURLRequest::AddressSpaceLocal : WebURLRequest::AddressSpacePrivate; |
+ |
+ return WebURLRequest::AddressSpacePublic; |
+} |
+ |
} // namespace blink |