WebSocket: Add binaryType attribute
[WebKit-https.git] / Source / WebCore / websockets / WebSocketChannelClient.h
index 1551073..38bd17d 100644 (file)
@@ -41,7 +41,12 @@ namespace WebCore {
         virtual void didConnect() { }
         virtual void didReceiveMessage(const String&) { }
         virtual void didReceiveMessageError() { }
-        virtual void didClose(unsigned long /* unhandledBufferedAmount */) { }
+        virtual void didStartClosingHandshake() { }
+        enum ClosingHandshakeCompletionStatus {
+            ClosingHandshakeIncomplete,
+            ClosingHandshakeComplete
+        };
+        virtual void didClose(unsigned long /* unhandledBufferedAmount */, ClosingHandshakeCompletionStatus) { }
 
     protected:
         WebSocketChannelClient() { }