Add proxy server query function proxyServersForURL and change the Mac plug-in code...
authorAnders Carlsson <andersca@apple.com>
Fri, 1 Oct 2010 23:28:17 +0000 (23:28 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 18 Nov 2010 17:29:07 +0000 (14:29 -0300)
commit39e824c4666a244f0bbdbb86e4910a569af0cad3
tree6ed3ede1b12f9485ed224642bf28eb730f5f781e
parent8c6f4aef9c411390f8c428e1e1bde893c436b166
Add proxy server query function proxyServersForURL and change the Mac plug-in code to use it
https://bugs.webkit.org/show_bug.cgi?id=47022
<rdar://problem/8504712>

Reviewed by Dan Bernstein.

WebCore:

* WebCore.exp.in:
Export proxyServersForURL and toString.

* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
Add new files.

* platform/network/ProxyServer.cpp: Added.
(WebCore::appendProxyServerString):
(WebCore::toString):
New function that converts a vector of ProxyServers into a PAC style string.

* platform/network/ProxyServer.h: Added.
(WebCore::ProxyServer::ProxyServer):
(WebCore::ProxyServer::type):
(WebCore::ProxyServer::hostName):
(WebCore::ProxyServer::port):
Add ProxyServer class.

* platform/network/cf/ProxyServerCFNet.cpp: Added.
(WebCore::proxyServersForURL):
(WebCore::addProxyServersForURL):
Query CFNetwork for the proxy servers given a URL.

WebKit/mac:

* Plugins/Hosted/NetscapePluginInstanceProxy.mm:
(WebKit::NetscapePluginInstanceProxy::getProxy):
* Plugins/WebBaseNetscapePluginView.h:
* Plugins/WebBaseNetscapePluginView.mm:
* Plugins/WebNetscapePluginView.mm:
(-[WebNetscapePluginView getVariable:forURL:value:length:]):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68951 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
WebCore/ChangeLog
WebCore/WebCore.exp.in
WebCore/WebCore.vcproj/WebCore.vcproj
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/platform/network/ProxyServer.cpp [new file with mode: 0644]
WebCore/platform/network/ProxyServer.h [new file with mode: 0644]
WebCore/platform/network/cf/ProxyServerCFNet.cpp [new file with mode: 0644]
WebKit/mac/ChangeLog
WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm
WebKit/mac/Plugins/WebBaseNetscapePluginView.h
WebKit/mac/Plugins/WebBaseNetscapePluginView.mm
WebKit/mac/Plugins/WebNetscapePluginView.mm