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

Unified Diff: public/platform/Platform.h

Issue 908483002: Fix to respect --explicitly-allowed-ports command line option (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index 6f50d496c3e41f01c650a76c141327faa9991f22..7ed2b4de9e2f59f29bcfb9658d39acf6df08b32a 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -334,6 +334,8 @@ public:
virtual bool isReservedIPAddress(const WebString& host) const { return false; }
+ virtual bool portAllowed(const unsigned short port, bool isFtp) const { return false; }
+
// Plugins -------------------------------------------------------------
// If refresh is true, then cached information should not be used to
« Source/modules/websockets/DOMWebSocket.cpp ('K') | « Source/platform/weborigin/KnownPorts.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698