[iOS] Enable the JSC Objective-C API

Rubber-stamped by Simon Fraser.

* API/JSBase.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161820 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move implementation of AuthenticationChallenge::setAuthenticationClient() to source file for USE(CFNETWORK)
<http://webkit.org/b/126848>

Reviewed by Simon Fraser.

* platform/network/cf/AuthenticationCF.cpp:
(WebCore::AuthenticationChallenge::setAuthenticationClient):
Move implementation to here...
* platform/network/cf/AuthenticationChallenge.h: ...from here.
Remove duplicate header definitions inside USE(CFNETWORK).


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add generated JSTouch* and JSGestureEvent.* files to the project.

* WebCore.xcodeproj/project.pbxproj:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161822 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix a bunch of linker errors related to exported functions.
I removed some iOS symbols from the .exp.in file; we may have
to add some back.

* WebCore.exp.in:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161823 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix linker errors: add DateTimeFormat.cpp to the project,
and make DateInputType::DateInputType not inline.

* WebCore.xcodeproj/project.pbxproj:
* html/DateInputType.cpp:
(WebCore::DateInputType::DateInputType):
* platform/DragImage.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161824 268f45cc-cd09-0410-ab3c-d52691b4dbfc
We need DragImage.cpp code even when ENABLE_DRAG_SUPPORT is
not defined, because these are actually generic snapshotting
functions.

* platform/DragImage.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Stub out some DragImage functions for iOS.

* WebCore.xcodeproj/project.pbxproj:
* platform/ios/DragImageIOS.mm: Added.
(WebCore::dragImageSize):
(WebCore::scaleDragImage):
(WebCore::createDragImageFromImage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161826 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add JSWebKitPlaybackTargetAvailabilityEvent.* to the project.

* WebCore.xcodeproj/project.pbxproj:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add implementations of Frame::viewportArguments() and
Frame::setViewportArguments().

* page/ios/FrameIOS.mm:
(WebCore::Frame::viewportArguments):
(WebCore::Frame::setViewportArguments):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Upstream WebKit2 xcconfig changes to fix the build

* Configurations/All-iOS.xcconfig: Added.
* Configurations/Base.xcconfig:
* Configurations/BaseLegacyProcess.xcconfig:
* Configurations/BaseTarget.xcconfig:
* Configurations/BaseXPCService.xcconfig:
* Configurations/DebugRelease.xcconfig:
* Configurations/WebContentService.xcconfig:
* Configurations/iOS.xcconfig: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Clean up NetworkStateNotifier class
https://bugs.webkit.org/show_bug.cgi?id=126850

Reviewed by Andreas Kling.

Use std::call_once instead of AtomicallyInitializedStatic and a std::function
instead of a custom function pointer typedef.

* platform/network/NetworkStateNotifier.cpp:
(WebCore::networkStateNotifier):
(WebCore::NetworkStateNotifier::addNetworkStateChangeListener):
(WebCore::NetworkStateNotifier::notifyNetworkStateChange):
* platform/network/NetworkStateNotifier.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161830 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build Fix: Objective-C GC should be unsupported in iOS WebKit2

* Configurations/Base.xcconfig:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161831 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Don't build JSTouch* and JSGesture* files on Mac.

* Configurations/WebCore.xcconfig:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Try to fix the Windows build after r161830.

* platform/network/NetworkStateNotifier.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
OS X build fix.

* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX.plist: Copied from WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist.
* WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist: Removed.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161834 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use std::call_once instead of AtomicallyInitializedStatic in DatabaseBackendBase
https://bugs.webkit.org/show_bug.cgi?id=126851

Reviewed by Sam Weinig.

* Modules/webdatabase/DatabaseBackendBase.cpp:
(WebCore::guidMutex):
(WebCore::guidToVersionMap):
(WebCore::updateGuidVersionMap):
(WebCore::guidToDatabaseMap):
(WebCore::guidForOriginAndName):
(WebCore::DatabaseBackendBase::DatabaseBackendBase):
(WebCore::DatabaseBackendBase::closeDatabase):
(WebCore::DatabaseBackendBase::performOpenAndVerify):
(WebCore::DatabaseBackendBase::getCachedVersion):
(WebCore::DatabaseBackendBase::setCachedVersion):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161835 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Added a reference to WebContentService/Info-OSX.plist to the project.

* WebKit2.xcodeproj/project.pbxproj:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161836 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Final WebCore link error: update a symbol in WebCoreSystemInterfaceIOS.mm.

* platform/ios/WebCoreSystemInterfaceIOS.mm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161837 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Simplify creation of XMLHttpRequestStaticData
https://bugs.webkit.org/show_bug.cgi?id=126852

Reviewed by Sam Weinig.

Add a staticData() getter that does the initialization and get rid of the explicit
calls to initializeXMLHttpRequestStaticData().

* xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequestStaticData::XMLHttpRequestStaticData):
(WebCore::staticData):
(WebCore::XMLHttpRequest::XMLHttpRequest):
(WebCore::XMLHttpRequest::isAllowedHTTPHeader):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161838 268f45cc-cd09-0410-ab3c-d52691b4dbfc