Simplify createDataAvailableSource
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 10 May 2014 20:51:20 +0000 (20:51 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 10 May 2014 20:51:20 +0000 (20:51 +0000)
commite7e266caac8c9490a7ef5abff567d469cfba327b
tree8d620f0291457593b284f457691f1e51ea689eec
parentea0f0f01514eb46d0f86593f94dab32e246aaac7
Simplify createDataAvailableSource
https://bugs.webkit.org/show_bug.cgi?id=132782
<rdar://problem/16815202>

Reviewed by Sam Weinig.

* Platform/IPC/mac/ConnectionMac.mm: Renamed from Source/WebKit2/Platform/IPC/mac/ConnectionMac.cpp.
Rename to make this Objective-C++ so we get the lambda-to-block conversion.

(IPC::createDataAvailableSource):
Make this a function template and just pass the function directly to dispatch_source_set_event_handler.

(IPC::Connection::open):
Use lambdas instead of WTF::bind, so we'll make sure the connection is kept alive.

* WebKit2.xcodeproj/project.pbxproj:
Update for ConnectionMac.cpp to ConnectionMac.mm rename.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@168583 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/Platform/IPC/mac/ConnectionMac.mm [moved from Source/WebKit2/Platform/IPC/mac/ConnectionMac.cpp with 97% similarity]
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj