#ifndef CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_IMPL_H_
#define CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_IMPL_H_
#include "base/memory/ref_counted.h"
#include "base/supports_user_data.h"
#include "third_party/WebKit/public/platform/WebSocketStreamHandle.h"
namespace content {
class WebSocketStreamHandleImpl : public base::SupportsUserData,
public blink::WebSocketStreamHandle {
public:
WebSocketStreamHandleImpl();
virtual ~WebSocketStreamHandleImpl();
virtual void connect(const blink::WebURL& url,
blink::WebSocketStreamHandleClient* client);
virtual bool send(const blink::WebData& data);
virtual void close();
private:
class Context;
scoped_refptr<Context> context_;
DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleImpl);
};
}
#endif