| Index: content/child/blink_platform_impl.cc
|
| diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
|
| index 2c71a251fcc9e844bf7babe5fd2bbfdc86288099..04305667bf92e852bc086f3e92e4754602818c5e 100644
|
| --- a/content/child/blink_platform_impl.cc
|
| +++ b/content/child/blink_platform_impl.cc
|
| @@ -505,6 +505,18 @@ bool BlinkPlatformImpl::isReservedIPAddress(
|
| return net::IsIPAddressReserved(address);
|
| }
|
|
|
| +bool BlinkPlatformImpl::portAllowed(const blink::WebURL& url) const {
|
| + GURL gurl = GURL(url);
|
| + if (!gurl.has_port())
|
| + return true;
|
| + int port = gurl.IntPort();
|
| + if (net::IsPortAllowedByOverride(port))
|
| + return true;
|
| + if (gurl.SchemeIs("ftp"))
|
| + return net::IsPortAllowedByFtp(port);
|
| + return net::IsPortAllowedByDefault(port);
|
| +}
|
| +
|
| blink::WebThread* BlinkPlatformImpl::createThread(const char* name) {
|
| WebThreadImpl* thread = new WebThreadImpl(name);
|
| thread->TaskRunner()->PostTask(
|
|
|