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..f9007f31e8cfbac6083cbe6182476704a2737c32 |
--- /dev/null |
+++ b/webkit/child/websocket_handle_delegate.h |
@@ -0,0 +1,38 @@ |
+// 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 <vector> |
tyoshino (SeeGerritForStatus)
2013/09/03 07:18:30
unnecessary
yhirano
2013/09/03 09:12:08
Done.
|
+ |
+#include "base/basictypes.h" |
+#include "base/memory/ref_counted.h" |
tyoshino (SeeGerritForStatus)
2013/09/03 07:18:30
not used?
yhirano
2013/09/03 09:12:08
Done.
|
+#include "webkit/child/websocket_handle_bridge.h" |
+ |
+class GURL; |
+ |
+namespace webkit_glue { |
+ |
+class WebSocketHandleDelegate { |
+ 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_ |