Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: content/child/web_socket_stream_handle_bridge.h

Issue 655253006: Remove old WebSocket implementation from content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_BRIDGE_H_
6 #define CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_BRIDGE_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h"
12
13 class GURL;
14
15 namespace content {
16
17 class WebSocketStreamHandleBridge
18 : public base::RefCountedThreadSafe<WebSocketStreamHandleBridge> {
19 public:
20 virtual void Connect(const GURL& url) = 0;
21
22 virtual bool Send(const std::vector<char>& data) = 0;
23
24 virtual void Close() = 0;
25
26 protected:
27 friend class base::RefCountedThreadSafe<WebSocketStreamHandleBridge>;
28 WebSocketStreamHandleBridge() {}
29 virtual ~WebSocketStreamHandleBridge() {}
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleBridge);
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_BRIDGE_H_
OLDNEW
« no previous file with comments | « content/child/socket_stream_dispatcher.cc ('k') | content/child/web_socket_stream_handle_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698