Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.h

Issue 11192017: ********** WebCore blob hacking (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.h
===================================================================
--- WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.h (revision 132804)
+++ WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.h (working copy)
@@ -67,7 +67,7 @@
virtual String extensions() OVERRIDE;
virtual ThreadableWebSocketChannel::SendResult send(const String& message) OVERRIDE;
virtual ThreadableWebSocketChannel::SendResult send(const ArrayBuffer&, unsigned byteOffset, unsigned byteLength) OVERRIDE;
- virtual ThreadableWebSocketChannel::SendResult send(const Blob&) OVERRIDE;
+ virtual ThreadableWebSocketChannel::SendResult send(const Blob&) OVERRIDE; // TODO: change the API to send(BlobDataHandle*)
virtual unsigned long bufferedAmount() const OVERRIDE;
virtual void close(int code, const String& reason) OVERRIDE;
virtual void fail(const String& reason) OVERRIDE;
@@ -172,7 +172,8 @@
static void mainThreadConnect(ScriptExecutionContext*, Peer*, const KURL&, const String& protocol);
static void mainThreadSend(ScriptExecutionContext*, Peer*, const String& message);
static void mainThreadSendArrayBuffer(ScriptExecutionContext*, Peer*, PassOwnPtr<Vector<char> >);
- static void mainThreadSendBlob(ScriptExecutionContext*, Peer*, const KURL&, const String& type, long long size);
+ // TODO: Param s/b PassRefPtr<BlobDataHandle> instead of uuid
+ static void mainThreadSendBlob(ScriptExecutionContext*, Peer*, const String& uuid, const String& type, long long size);
static void mainThreadBufferedAmount(ScriptExecutionContext*, Peer*);
static void mainThreadClose(ScriptExecutionContext*, Peer*, int code, const String& reason);
static void mainThreadFail(ScriptExecutionContext*, Peer*, const String& reason);

Powered by Google App Engine
This is Rietveld 408576698