2010-09-07 Oliver Hunt <oliver@apple.com>
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Sep 2010 17:58:23 +0000 (17:58 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Sep 2010 17:58:23 +0000 (17:58 +0000)
commitfd79ee22718d0fad787825404727a6f603fafa10
tree5ddde640aeccd783c5c010d2bf6af2085428b0cc
parentf1e451100226845ca6717bfc863c4ebd33951e54
2010-09-07  Oliver Hunt  <oliver@apple.com>

        Reviewed by Anders Carlsson.

        Support SerializedScriptValue in WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=45340

        Add a new constructor that allows WebKit2 to create a SerializedScriptValue
        directly from serialized data.

        * WebCore.exp.in:
        * bindings/js/SerializedScriptValue.h:
        (WebCore::SerializedScriptValue::adopt):
        (WebCore::SerializedScriptValue::data):
2010-09-07  Oliver Hunt  <oliver@apple.com>

        Reviewed by Anders Carlsson.

        Support SerializedScriptValue in WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=45340

        Add wrappers and IPC serialization for SerializedScriptValue

        * Shared/APIObject.h:
        * Shared/UserMessageCoders.h:
        (WebKit::UserMessageEncoder::baseEncode):
        (WebKit::UserMessageDecoder::baseDecode):
        * Shared/WebSerializedScriptValue.h: Added.
        (WebKit::WebSerializedScriptValue::create):
        (WebKit::WebSerializedScriptValue::adopt):
        (WebKit::WebSerializedScriptValue::deserialize):
        (WebKit::WebSerializedScriptValue::data):
        (WebKit::WebSerializedScriptValue::WebSerializedScriptValue):
        (WebKit::WebSerializedScriptValue::type):
        * UIProcess/API/C/WKAPICast.h:
        * UIProcess/API/C/WKBase.h:
        * UIProcess/API/C/WKSerializedScriptValue.cpp: Added.
        (WKSerializedScriptValueGetTypeID):
        (WKSerializedScriptValueCreate):
        (WKSerializedScriptValueDeserialize):
        * UIProcess/API/C/WKSerializedScriptValue.h: Added.
        * WebKit2.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@66995 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
WebCore/ChangeLog
WebCore/WebCore.exp.in
WebCore/bindings/js/SerializedScriptValue.h
WebKit2/ChangeLog
WebKit2/Shared/APIObject.h
WebKit2/Shared/UserMessageCoders.h
WebKit2/Shared/WebSerializedScriptValue.h [new file with mode: 0644]
WebKit2/UIProcess/API/C/WKAPICast.h
WebKit2/UIProcess/API/C/WKBase.h
WebKit2/UIProcess/API/C/WKSerializedScriptValue.cpp [new file with mode: 0644]
WebKit2/UIProcess/API/C/WKSerializedScriptValue.h [new file with mode: 0644]
WebKit2/WebKit2.pro
WebKit2/WebKit2.xcodeproj/project.pbxproj
WebKit2/win/WebKit2.vcproj