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

Side by Side Diff: webkit/child/websocketstreamhandle_bridge.h

Issue 185553014: Revert "Revert 254514 "Revert 254507 "Reland "Move WebKitPlatformSupport..."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_BRIDGE_H_ 5 #ifndef WEBKIT_CHILD_WEBSOCKETSTREAMHANDLE_BRIDGE_H_
6 #define CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_BRIDGE_H_ 6 #define WEBKIT_CHILD_WEBSOCKETSTREAMHANDLE_BRIDGE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 12
13 class GURL; 13 class GURL;
14 14
15 namespace content { 15 namespace webkit_glue {
16 16
17 class WebSocketStreamHandleBridge 17 class WebSocketStreamHandleBridge
18 : public base::RefCountedThreadSafe<WebSocketStreamHandleBridge> { 18 : public base::RefCountedThreadSafe<WebSocketStreamHandleBridge> {
19 public: 19 public:
20 virtual void Connect(const GURL& url) = 0; 20 virtual void Connect(const GURL& url) = 0;
21 21
22 virtual bool Send(const std::vector<char>& data) = 0; 22 virtual bool Send(const std::vector<char>& data) = 0;
23 23
24 virtual void Close() = 0; 24 virtual void Close() = 0;
25 25
26 protected: 26 protected:
27 friend class base::RefCountedThreadSafe<WebSocketStreamHandleBridge>; 27 friend class base::RefCountedThreadSafe<WebSocketStreamHandleBridge>;
28 WebSocketStreamHandleBridge() {} 28 WebSocketStreamHandleBridge() {}
29 virtual ~WebSocketStreamHandleBridge() {} 29 virtual ~WebSocketStreamHandleBridge() {}
30 30
31 private: 31 private:
32 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleBridge); 32 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleBridge);
33 }; 33 };
34 34
35 } // namespace content 35 } // namespace webkit_glue
36 36
37 #endif // CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_BRIDGE_H_ 37 #endif // WEBKIT_CHILD_WEBSOCKETSTREAMHANDLE_BRIDGE_H_
OLDNEW
« no previous file with comments | « webkit/child/webkitplatformsupport_impl.cc ('k') | webkit/child/websocketstreamhandle_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698