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

Unified Diff: public/platform/Platform.h

Issue 446363002: Add platform methods to check reserved IP addresses. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index 8c9de1ca66c9b96916e2e8805b116f61723c7530..7fc204826eca1f666869da0bb080c05f761a2fe5 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -91,6 +91,7 @@ class WebPublicSuffixList;
class WebRTCPeerConnectionHandler;
class WebRTCPeerConnectionHandlerClient;
class WebSandboxSupport;
+class WebSecurityOrigin;
class WebScrollbarBehavior;
class WebSocketHandle;
class WebSocketStreamHandle;
@@ -323,6 +324,8 @@ public:
virtual WebURLError cancelledError(const WebURL&) const { return WebURLError(); }
+ virtual bool isReservedIPAddress(const WebURL&) const { return false; }
+ virtual bool isReservedIPAddress(const WebSecurityOrigin&) const { return false; }
// Plugins -------------------------------------------------------------
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698