| Index: third_party/WebKit/public/platform/modules/websockets/WebSocketHandle.h
|
| diff --git a/third_party/WebKit/public/platform/modules/websockets/WebSocketHandle.h b/third_party/WebKit/public/platform/modules/websockets/WebSocketHandle.h
|
| index 82ff81701986e70779a484bccd94c44eeb83a34a..ebfdac6b652971177a3ae75d934f339cf7b583d4 100644
|
| --- a/third_party/WebKit/public/platform/modules/websockets/WebSocketHandle.h
|
| +++ b/third_party/WebKit/public/platform/modules/websockets/WebSocketHandle.h
|
| @@ -55,12 +55,19 @@ public:
|
| MessageTypeBinary,
|
| };
|
|
|
| + enum BinaryType {
|
| + BinaryTypeBlob,
|
| + BinaryTypeArrayBuffer,
|
| + };
|
| +
|
| virtual ~WebSocketHandle() { }
|
|
|
| virtual void connect(const WebURL&, const WebVector<WebString>& protocols, const WebSecurityOrigin&, WebSocketHandleClient*) = 0;
|
| virtual void send(bool fin, MessageType, const char* data, size_t /* size */) = 0;
|
| virtual void flowControl(int64_t quota) = 0;
|
| virtual void close(unsigned short code, const WebString& reason) = 0;
|
| + virtual void changeBinaryType(BinaryType) = 0;
|
| + virtual void confirmBlob() = 0;
|
| };
|
|
|
| } // namespace blink
|
|
|