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

Unified Diff: WebCore/bindings/v8/custom/V8CustomBinding.h

Issue 155079: WebSocket implementation in WebKit (Closed)
Patch Set: Rewrite to use SocketStreamHandle Created 11 years, 5 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
« no previous file with comments | « WebCore/bindings/v8/V8Index.h ('k') | WebCore/bindings/v8/custom/V8WebSocketCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/bindings/v8/custom/V8CustomBinding.h
diff --git a/WebCore/bindings/v8/custom/V8CustomBinding.h b/WebCore/bindings/v8/custom/V8CustomBinding.h
index 6dfbddcf6d18e4ec8976478880f43006c98c18e7..d78ccbf17944b804fd7849283e48533851a1c59b 100644
--- a/WebCore/bindings/v8/custom/V8CustomBinding.h
+++ b/WebCore/bindings/v8/custom/V8CustomBinding.h
@@ -150,6 +150,12 @@ namespace WebCore {
static const int kStyleSheetOwnerNodeIndex = kDefaultWrapperInternalFieldCount + 0;
static const int kStyleSheetInternalFieldCount = kDefaultWrapperInternalFieldCount + 1;
+#if ENABLE(WEB_SOCKETS)
+ static const int kWebSocketCacheIndex = kDefaultWrapperInternalFieldCount + 0;
+ static const int kWebSocketInternalFieldCount = kDefaultWrapperInternalFieldCount + 1;
+#endif
+
+
#define DECLARE_PROPERTY_ACCESSOR_GETTER(NAME) \
static v8::Handle<v8::Value> v8##NAME##AccessorGetter( \
v8::Local<v8::String> name, const v8::AccessorInfo& info)
@@ -503,6 +509,15 @@ namespace WebCore {
DECLARE_CALLBACK(SharedWorkerConstructor);
#endif
+#if ENABLE(WEB_SOCKETS)
+ DECLARE_PROPERTY_ACCESSOR(WebSocketOnopen);
+ DECLARE_PROPERTY_ACCESSOR(WebSocketOnmessage);
+ DECLARE_PROPERTY_ACCESSOR(WebSocketOnclose);
+ DECLARE_CALLBACK(WebSocketConstructor);
+ DECLARE_CALLBACK(WebSocketSend);
+ DECLARE_CALLBACK(WebSocketClose);
+#endif
+
#undef DECLARE_INDEXED_ACCESS_CHECK
#undef DECLARE_NAMED_ACCESS_CHECK
« no previous file with comments | « WebCore/bindings/v8/V8Index.h ('k') | WebCore/bindings/v8/custom/V8WebSocketCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698