blob: f8a08f4a7dc019a1f6ce6982c44e29c2c6b6956c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// 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_IMPL_H_
#define WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_
#include "base/ref_counted.h"
#include "third_party/WebKit/WebKit/chromium/public/WebSocketStreamHandle.h"
namespace webkit_glue {
class WebSocketStreamHandleImpl : public WebKit::WebSocketStreamHandle {
public:
WebSocketStreamHandleImpl();
virtual ~WebSocketStreamHandleImpl();
// WebSocketStreamHandle methods:
virtual void connect(
const WebKit::WebURL& url,
WebKit::WebSocketStreamHandleClient* client);
virtual bool send(const WebKit::WebData& data);
virtual void close();
private:
class Context;
scoped_refptr<Context> context_;
DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleImpl);
};
} // namespace webkit_glue
#endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_
|