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

Unified Diff: Source/modules/websockets/WorkerThreadableWebSocketChannel.h

Issue 23992003: blob hacking webcore style (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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: Source/modules/websockets/WorkerThreadableWebSocketChannel.h
diff --git a/Source/modules/websockets/WorkerThreadableWebSocketChannel.h b/Source/modules/websockets/WorkerThreadableWebSocketChannel.h
index a5ee5ce3786e920de6f7cb521f3a1777d9b48178..b89db0d7f5be044238c162c29db50602dfbf718b 100644
--- a/Source/modules/websockets/WorkerThreadableWebSocketChannel.h
+++ b/Source/modules/websockets/WorkerThreadableWebSocketChannel.h
@@ -46,6 +46,7 @@
namespace WebCore {
+class BlobDataHandle;
class KURL;
class ExecutionContext;
class ThreadableWebSocketChannelClientWrapper;
@@ -68,7 +69,7 @@ public:
virtual String extensions() OVERRIDE;
virtual WebSocketChannel::SendResult send(const String& message) OVERRIDE;
virtual WebSocketChannel::SendResult send(const ArrayBuffer&, unsigned byteOffset, unsigned byteLength) OVERRIDE;
- virtual WebSocketChannel::SendResult send(const Blob&) OVERRIDE;
+ virtual WebSocketChannel::SendResult send(PassRefPtr<BlobDataHandle>) OVERRIDE;
virtual unsigned long bufferedAmount() const OVERRIDE;
virtual void close(int code, const String& reason) OVERRIDE;
virtual void fail(const String& reason, MessageLevel, const String&, unsigned) OVERRIDE;
@@ -92,7 +93,7 @@ public:
void connect(const KURL&, const String& protocol);
void send(const String& message);
void send(const ArrayBuffer&);
- void send(const Blob&);
+ void send(PassRefPtr<BlobDataHandle>);
void bufferedAmount();
void close(int code, const String& reason);
void fail(const String& reason, MessageLevel, const String& sourceURL, unsigned lineNumber);
@@ -141,7 +142,7 @@ private:
void connect(const KURL&, const String& protocol);
WebSocketChannel::SendResult send(const String& message);
WebSocketChannel::SendResult send(const ArrayBuffer&, unsigned byteOffset, unsigned byteLength);
- WebSocketChannel::SendResult send(const Blob&);
+ WebSocketChannel::SendResult send(PassRefPtr<BlobDataHandle>);
unsigned long bufferedAmount();
void close(int code, const String& reason);
void fail(const String& reason, MessageLevel, const String& sourceURL, unsigned lineNumber);
@@ -181,7 +182,7 @@ private:
static void mainThreadConnect(ExecutionContext*, Peer*, const KURL&, const String& protocol);
static void mainThreadSend(ExecutionContext*, Peer*, const String& message);
static void mainThreadSendArrayBuffer(ExecutionContext*, Peer*, PassOwnPtr<Vector<char> >);
- static void mainThreadSendBlob(ExecutionContext*, Peer*, const KURL&, const String& type, long long size);
+ static void mainThreadSendBlob(ExecutionContext*, Peer*, PassRefPtr<BlobDataHandle>);
static void mainThreadBufferedAmount(ExecutionContext*, Peer*);
static void mainThreadClose(ExecutionContext*, Peer*, int code, const String& reason);
static void mainThreadFail(ExecutionContext*, Peer*, const String& reason, MessageLevel, const String& sourceURL, unsigned lineNumber);
« no previous file with comments | « Source/modules/websockets/WebSocketChannel.h ('k') | Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698