diff options
author | ukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-21 09:17:26 +0000 |
---|---|---|
committer | ukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-21 09:17:26 +0000 |
commit | 4644c7573d32f1064106557c0772c99b964b09c0 (patch) | |
tree | 12697bad6a18c25a34e6a49c535cf03ca2cade80 /webkit/glue/websocketstreamhandle_delegate.h | |
parent | 329f3e727ee9a3ab5fd27bba7f2fc08c4c620d7b (diff) | |
download | chromium_src-4644c7573d32f1064106557c0772c99b964b09c0.zip chromium_src-4644c7573d32f1064106557c0772c99b964b09c0.tar.gz chromium_src-4644c7573d32f1064106557c0772c99b964b09c0.tar.bz2 |
Enable WebSocket in test_shell
BUG=12497,24756
TEST=LayoutTests/fast/websockets success
Review URL: http://codereview.chromium.org/243108
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29626 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/websocketstreamhandle_delegate.h')
-rw-r--r-- | webkit/glue/websocketstreamhandle_delegate.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/webkit/glue/websocketstreamhandle_delegate.h b/webkit/glue/websocketstreamhandle_delegate.h new file mode 100644 index 0000000..2148699 --- /dev/null +++ b/webkit/glue/websocketstreamhandle_delegate.h @@ -0,0 +1,37 @@ +// Copyright (c) 2009 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_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_ +#define WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_ + +class GURL; + +namespace WebKit { +class WebSocketStreamHandle; +} + +namespace webkit_glue { + +class WebSocketStreamHandleDelegate { + public: + WebSocketStreamHandleDelegate() {} + virtual ~WebSocketStreamHandleDelegate() {} + + virtual void WillOpenStream(WebKit::WebSocketStreamHandle* handle, + const GURL& url) {} + virtual void WillSendData(WebKit::WebSocketStreamHandle* handle, + const char* data, int len) {} + + virtual void DidOpenStream(WebKit::WebSocketStreamHandle* handle, + int max_amount_send_allowed) {} + virtual void DidSendData(WebKit::WebSocketStreamHandle* handle, + int amount_sent) {} + virtual void DidReceiveData(WebKit::WebSocketStreamHandle* handle, + const char* data, int len) {} + virtual void DidClose(WebKit::WebSocketStreamHandle*) {} +}; + +} // namespace webkit_glue + +#endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_ |