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

Unified Diff: webkit/child/websocket_handle_delegate.h

Issue 22815034: Introduce webkit_glue bridges for the new WebSocket Implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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: webkit/child/websocket_handle_delegate.h
diff --git a/webkit/child/websocket_handle_delegate.h b/webkit/child/websocket_handle_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..7ef5e84d40da048aa92283500ca86549d2c6350d
--- /dev/null
+++ b/webkit/child/websocket_handle_delegate.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_CHILD_WEBSOCKET_HANDLE_DELEGATE_H_
+#define WEBKIT_CHILD_WEBSOCKET_HANDLE_DELEGATE_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "webkit/child/websocket_handle_bridge.h"
+
+class GURL;
+
+namespace webkit_glue {
+
+class WebSocketHandleDelegate {
piman 2013/09/12 07:30:21 We're trying to avoid adding new code to webkit/ a
yhirano 2013/09/13 12:32:29 Done.
+ public:
+ virtual void DidConnect(bool fail,
+ const std::string& protocol,
+ const std::string& extensions) = 0;
+ virtual void DidReceiveData(bool fin,
+ WebSocketHandleBridge::MessageType type,
+ const char* data,
+ size_t size) = 0;
+ virtual void DidReceiveFlowControl(int64_t quota) = 0;
+ virtual void DidClose(unsigned short code, const std::string& reason) = 0;
+
+ protected:
+ WebSocketHandleDelegate() {}
+ virtual ~WebSocketHandleDelegate() {}
+};
+
+} // namespace webkit_glue
+
+#endif // WEBKIT_CHILD_WEBSOCKET_HANDLE_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698