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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // A suggestion to cache this metadata in association with this URL. 327 // A suggestion to cache this metadata in association with this URL.
328 virtual void cacheMetadata(const WebURL&, int64 responseTime, const char* da ta, size_t dataSize) { } 328 virtual void cacheMetadata(const WebURL&, int64 responseTime, const char* da ta, size_t dataSize) { }
329 329
330 // Returns the decoded data url if url had a supported mimetype and parsing was successful. 330 // Returns the decoded data url if url had a supported mimetype and parsing was successful.
331 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); } 331 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }
332 332
333 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); } 333 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); }
334 334
335 virtual bool isReservedIPAddress(const WebString& host) const { return false ; } 335 virtual bool isReservedIPAddress(const WebString& host) const { return false ; }
336 336
337 virtual bool portAllowed(const unsigned short port, bool isFtp) const { retu rn false; }
338
337 // Plugins ------------------------------------------------------------- 339 // Plugins -------------------------------------------------------------
338 340
339 // If refresh is true, then cached information should not be used to 341 // If refresh is true, then cached information should not be used to
340 // satisfy this call. 342 // satisfy this call.
341 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } 343 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { }
342 344
343 345
344 // Public Suffix List -------------------------------------------------- 346 // Public Suffix List --------------------------------------------------
345 347
346 // May return null on some platforms. 348 // May return null on some platforms.
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 protected: 694 protected:
693 BLINK_PLATFORM_EXPORT Platform(); 695 BLINK_PLATFORM_EXPORT Platform();
694 virtual ~Platform() { } 696 virtual ~Platform() { }
695 697
696 WebThread* m_mainThread; 698 WebThread* m_mainThread;
697 }; 699 };
698 700
699 } // namespace blink 701 } // namespace blink
700 702
701 #endif 703 #endif
OLDNEW
« 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