1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_
6 #define WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_
11 class WebSocketStreamHandle
;
14 namespace webkit_glue
{
16 class WebSocketStreamHandleDelegate
{
18 WebSocketStreamHandleDelegate() {}
20 virtual void WillOpenStream(WebKit::WebSocketStreamHandle
* handle
,
22 virtual void WillSendData(WebKit::WebSocketStreamHandle
* handle
,
23 const char* data
, int len
) {}
25 virtual void DidOpenStream(WebKit::WebSocketStreamHandle
* handle
,
26 int max_amount_send_allowed
) {}
27 virtual void DidSendData(WebKit::WebSocketStreamHandle
* handle
,
29 virtual void DidReceiveData(WebKit::WebSocketStreamHandle
* handle
,
30 const char* data
, int len
) {}
31 virtual void DidClose(WebKit::WebSocketStreamHandle
*) {}
34 virtual ~WebSocketStreamHandleDelegate() {}
37 } // namespace webkit_glue
39 #endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_