| Index: webkit/child/websocket_handle_impl.h
|
| diff --git a/webkit/child/websocket_handle_impl.h b/webkit/child/websocket_handle_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..98535a4f70c9a14b8b08381df3690fabf9863812
|
| --- /dev/null
|
| +++ b/webkit/child/websocket_handle_impl.h
|
| @@ -0,0 +1,44 @@
|
| +// Copyright (c) 2013 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_CHILD_WEBSOCKET_HANDLE_IMPL_H_
|
| +#define WEBKIT_CHILD_WEBSOCKET_HANDLE_IMPL_H_
|
| +
|
| +#include "base/memory/ref_counted.h"
|
| +#include "base/supports_user_data.h"
|
| +#include "third_party/WebKit/public/platform/WebSocketHandle.h"
|
| +
|
| +namespace webkit_glue {
|
| +
|
| +class WebKitPlatformSupportImpl;
|
| +
|
| +class WebSocketHandleImpl : public WebKit::WebSocketHandle {
|
| + public:
|
| + explicit WebSocketHandleImpl(WebKitPlatformSupportImpl* platform);
|
| + virtual ~WebSocketHandleImpl();
|
| +
|
| + // WebSocketHandle functions.
|
| + virtual void connect(const WebKit::WebURL& url,
|
| + const WebKit::WebVector<WebKit::WebString>& protocols,
|
| + const WebKit::WebString& origin,
|
| + WebKit::WebSocketHandleClient* client) OVERRIDE;
|
| + virtual void send(WebKit::WebSocketHandle::MessageType type,
|
| + const char* data,
|
| + size_t size,
|
| + bool fin) OVERRIDE;
|
| + virtual void flowControl(int64_t quota) OVERRIDE;
|
| + virtual void close(unsigned short code,
|
| + const WebKit::WebString& reason) OVERRIDE;
|
| +
|
| + private:
|
| + class Context;
|
| + scoped_refptr<Context> context_;
|
| + WebKitPlatformSupportImpl* platform_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(WebSocketHandleImpl);
|
| +};
|
| +
|
| +} // namespace webkit_glue
|
| +
|
| +#endif // WEBKIT_CHILD_WEBSOCKET_HANDLE_IMPL_H_
|
|
|