Skip to content
  • yutak@chromium.org's avatar
    WebSocket: Send Blob as WebSocket binary message · 7fe8a733
    yutak@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=67465
    
    Reviewed by Kent Tamura.
    
    Re-lands r94399 with a fix for Leopard builds.
    
    Source/WebCore:
    
    * bindings/js/JSWebSocketCustom.cpp:
    (WebCore::JSWebSocket::send):
    * bindings/v8/custom/V8WebSocketCustom.cpp:
    (WebCore::V8WebSocket::sendCallback):
    * websockets/ThreadableWebSocketChannel.h:
    * websockets/WebSocket.cpp:
    (WebCore::WebSocket::send):
    * websockets/WebSocket.h:
    * websockets/WebSocket.idl:
    * websockets/WebSocketChannel.cpp:
    (WebCore::WebSocketChannel::send):
    * websockets/WebSocketChannel.h:
    * websockets/WorkerThreadableWebSocketChannel.cpp:
    (WebCore::WorkerThreadableWebSocketChannel::send):
    (WebCore::WorkerThreadableWebSocketChannel::Peer::send):
    (WebCore::WorkerThreadableWebSocketChannel::mainThreadSendBlob):
    (WebCore::WorkerThreadableWebSocketChannel::Bridge::send):
    * websockets/WorkerThreadableWebSocketChannel.h:
    
    LayoutTests:
    
    * http/tests/websocket/tests/hixie76/send-empty-expected.txt: Added.
    * http/tests/websocket/tests/hixie76/send-empty.html: Added.
    * http/tests/websocket/tests/hixie76/send-object-expected.txt: Added.
    * http/tests/websocket/tests/hixie76/send-object.html: Added.
    * http/tests/websocket/tests/hybi/bufferedAmount-after-close-expected.txt:
    * http/tests/websocket/tests/hybi/bufferedAmount-after-close.html:
    * http/tests/websocket/tests/hybi/send-blob-expected.txt: Added.
    * http/tests/websocket/tests/hybi/send-blob.html: Added.
    * http/tests/websocket/tests/hybi/send-blob_wsh.py: Added.
    * http/tests/websocket/tests/hybi/send-empty-expected.txt: Added.
    * http/tests/websocket/tests/hybi/send-empty.html: Added.
    * http/tests/websocket/tests/hybi/send-file-blob-expected.txt: Added.
    * http/tests/websocket/tests/hybi/send-file-blob-fail-expected.txt: Added.
    * http/tests/websocket/tests/hybi/send-file-blob-fail.html: Added.
    * http/tests/websocket/tests/hybi/send-file-blob.html: Added.
    * http/tests/websocket/tests/hybi/send-file-blob_wsh.py: Added.
    * http/tests/websocket/tests/hybi/workers/resources/send-blob.js: Added.
    * http/tests/websocket/tests/hybi/workers/resources/send-blob_wsh.py: Added.
    * http/tests/websocket/tests/hybi/workers/send-blob-expected.txt: Added.
    * http/tests/websocket/tests/hybi/workers/send-blob.html: Added.
    * platform/gtk/Skipped:
    * platform/mac/Skipped:
    * platform/qt/Skipped:
    * platform/win/Skipped:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    7fe8a733