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

Unified Diff: third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.h

Issue 2284473002: Move WebSocketHandleImpl into Blink (take 2) (Closed)
Patch Set: Rebase Created 4 years, 4 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: third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.h
diff --git a/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.h b/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.h
index f56e6134f8faa25d2a6212b70bbf49ba27909d51..dd678e382be3fe1dbb7fdb82ecd342eb60756768 100644
--- a/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.h
+++ b/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.h
@@ -37,10 +37,10 @@
#include "core/fileapi/FileError.h"
#include "modules/ModulesExport.h"
#include "modules/websockets/WebSocketChannel.h"
+#include "modules/websockets/WebSocketHandle.h"
+#include "modules/websockets/WebSocketHandleClient.h"
#include "platform/heap/Handle.h"
#include "platform/weborigin/KURL.h"
-#include "public/platform/modules/websockets/WebSocketHandle.h"
-#include "public/platform/modules/websockets/WebSocketHandleClient.h"
#include "wtf/Deque.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
@@ -54,8 +54,6 @@ namespace blink {
class Document;
class WebSocketHandshakeRequest;
-class WebSocketHandshakeRequestInfo;
-class WebSocketHandshakeResponseInfo;
// This class is a WebSocketChannel subclass that works with a Document in a
// DOMWindow (i.e. works in the main thread).
@@ -116,12 +114,12 @@ private:
Document* document();
// WebSocketHandleClient functions.
- void didConnect(WebSocketHandle*, const WebString& selectedProtocol, const WebString& extensions) override;
- void didStartOpeningHandshake(WebSocketHandle*, const WebSocketHandshakeRequestInfo&) override;
- void didFinishOpeningHandshake(WebSocketHandle*, const WebSocketHandshakeResponseInfo&) override;
- void didFail(WebSocketHandle*, const WebString& message) override;
- void didReceiveData(WebSocketHandle*, bool fin, WebSocketHandle::MessageType, const char* data, size_t /* size */) override;
- void didClose(WebSocketHandle*, bool wasClean, unsigned short code, const WebString& reason) override;
+ void didConnect(WebSocketHandle*, const String& selectedProtocol, const String& extensions) override;
+ void didStartOpeningHandshake(WebSocketHandle*, PassRefPtr<WebSocketHandshakeRequest>) override;
+ void didFinishOpeningHandshake(WebSocketHandle*, const WebSocketHandshakeResponse*) override;
+ void didFail(WebSocketHandle*, const String& message) override;
+ void didReceiveData(WebSocketHandle*, bool fin, WebSocketHandle::MessageType, const char* data, size_t) override;
+ void didClose(WebSocketHandle*, bool wasClean, unsigned short code, const String& reason) override;
void didReceiveFlowControl(WebSocketHandle*, int64_t quota) override;
void didStartClosingHandshake(WebSocketHandle*) override;

Powered by Google App Engine
This is Rietveld 408576698