1 // Copyright 2014 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 CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_BRIDGE_H_
6 #define CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_BRIDGE_H_
10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h"
17 class WebSocketStreamHandleBridge
18 : public base::RefCountedThreadSafe
<WebSocketStreamHandleBridge
> {
20 virtual void Connect(const GURL
& url
) = 0;
22 virtual bool Send(const std::vector
<char>& data
) = 0;
24 virtual void Close() = 0;
27 friend class base::RefCountedThreadSafe
<WebSocketStreamHandleBridge
>;
28 WebSocketStreamHandleBridge() {}
29 virtual ~WebSocketStreamHandleBridge() {}
32 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleBridge
);
35 } // namespace content
37 #endif // CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_BRIDGE_H_