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

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, 8 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
« no previous file with comments | « Source/platform/weborigin/KnownPorts.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 // A suggestion to cache this metadata in association with this URL. 336 // A suggestion to cache this metadata in association with this URL.
337 virtual void cacheMetadata(const WebURL&, int64 responseTime, const char* da ta, size_t dataSize) { } 337 virtual void cacheMetadata(const WebURL&, int64 responseTime, const char* da ta, size_t dataSize) { }
338 338
339 // Returns the decoded data url if url had a supported mimetype and parsing was successful. 339 // Returns the decoded data url if url had a supported mimetype and parsing was successful.
340 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); } 340 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }
341 341
342 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); } 342 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); }
343 343
344 virtual bool isReservedIPAddress(const WebString& host) const { return false ; } 344 virtual bool isReservedIPAddress(const WebString& host) const { return false ; }
345 345
346 virtual bool portAllowed(const WebURL&) const { return false; }
347
346 // Plugins ------------------------------------------------------------- 348 // Plugins -------------------------------------------------------------
347 349
348 // If refresh is true, then cached information should not be used to 350 // If refresh is true, then cached information should not be used to
349 // satisfy this call. 351 // satisfy this call.
350 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } 352 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { }
351 353
352 354
353 // Public Suffix List -------------------------------------------------- 355 // Public Suffix List --------------------------------------------------
354 356
355 // May return null on some platforms. 357 // May return null on some platforms.
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 protected: 703 protected:
702 BLINK_PLATFORM_EXPORT Platform(); 704 BLINK_PLATFORM_EXPORT Platform();
703 virtual ~Platform() { } 705 virtual ~Platform() { }
704 706
705 WebThread* m_mainThread; 707 WebThread* m_mainThread;
706 }; 708 };
707 709
708 } // namespace blink 710 } // namespace blink
709 711
710 #endif 712 #endif
OLDNEW
« no previous file with comments | « Source/platform/weborigin/KnownPorts.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698