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

Unified Diff: mojo/services/html_viewer/websockethandle_impl.h

Issue 540683002: Mojo: Implement the rest of the WebSocket interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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: mojo/services/html_viewer/websockethandle_impl.h
diff --git a/mojo/services/html_viewer/websockethandle_impl.h b/mojo/services/html_viewer/websockethandle_impl.h
index e9eee06ed6c0e37065b2cea01a9ab0ca5000b74e..a0408d3012bd4b28915e025286f0ffd5aaf8d49e 100644
--- a/mojo/services/html_viewer/websockethandle_impl.h
+++ b/mojo/services/html_viewer/websockethandle_impl.h
@@ -21,6 +21,8 @@ class WebSocketHandleImpl : public blink::WebSocketHandle {
explicit WebSocketHandleImpl(NetworkService* network_service);
private:
+ friend class WebSocketClientImpl;
+
virtual ~WebSocketHandleImpl();
// blink::WebSocketHandle methods:
@@ -36,6 +38,9 @@ class WebSocketHandleImpl : public blink::WebSocketHandle {
virtual void close(unsigned short code,
const blink::WebString& reason) OVERRIDE;
+ // Called when the socket is closed.
+ void Disconnect();
+
WebSocketPtr web_socket_;
scoped_ptr<WebSocketClientImpl> client_;
// True if close() was called.
« no previous file with comments | « mojo/services/html_viewer/blink_basic_type_converters.cc ('k') | mojo/services/html_viewer/websockethandle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698