Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / content / child / web_socket_stream_handle_bridge.h
blob2655c102b29a870641b6978afec0782af9dedc82
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_
8 #include <vector>
10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h"
13 class GURL;
15 namespace content {
17 class WebSocketStreamHandleBridge
18 : public base::RefCountedThreadSafe<WebSocketStreamHandleBridge> {
19 public:
20 virtual void Connect(const GURL& url) = 0;
22 virtual bool Send(const std::vector<char>& data) = 0;
24 virtual void Close() = 0;
26 protected:
27 friend class base::RefCountedThreadSafe<WebSocketStreamHandleBridge>;
28 WebSocketStreamHandleBridge() {}
29 virtual ~WebSocketStreamHandleBridge() {}
31 private:
32 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleBridge);
35 } // namespace content
37 #endif // CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_BRIDGE_H_