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

Side by Side Diff: webkit/child/websocketstreamhandle_impl.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_IMPL_H_ 5 #ifndef WEBKIT_CHILD_WEBSOCKETSTREAMHANDLE_IMPL_H_
6 #define CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_IMPL_H_ 6 #define WEBKIT_CHILD_WEBSOCKETSTREAMHANDLE_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/supports_user_data.h" 9 #include "base/supports_user_data.h"
10 #include "third_party/WebKit/public/platform/WebSocketStreamHandle.h" 10 #include "third_party/WebKit/public/platform/WebSocketStreamHandle.h"
11 11
12 namespace content { 12 namespace webkit_glue {
13 13
14 class BlinkPlatformImpl; 14 class WebKitPlatformSupportImpl;
15 15
16 class WebSocketStreamHandleImpl : public base::SupportsUserData, 16 class WebSocketStreamHandleImpl
17 public blink::WebSocketStreamHandle { 17 : public base::SupportsUserData,
18 public blink::WebSocketStreamHandle {
18 public: 19 public:
19 explicit WebSocketStreamHandleImpl(BlinkPlatformImpl* platform); 20 explicit WebSocketStreamHandleImpl(WebKitPlatformSupportImpl* platform);
20 virtual ~WebSocketStreamHandleImpl(); 21 virtual ~WebSocketStreamHandleImpl();
21 22
22 // WebSocketStreamHandle methods: 23 // WebSocketStreamHandle methods:
23 virtual void connect(const blink::WebURL& url, 24 virtual void connect(
24 blink::WebSocketStreamHandleClient* client); 25 const blink::WebURL& url,
26 blink::WebSocketStreamHandleClient* client);
25 virtual bool send(const blink::WebData& data); 27 virtual bool send(const blink::WebData& data);
26 virtual void close(); 28 virtual void close();
27 29
28 private: 30 private:
29 class Context; 31 class Context;
30 scoped_refptr<Context> context_; 32 scoped_refptr<Context> context_;
31 BlinkPlatformImpl* platform_; 33 WebKitPlatformSupportImpl* platform_;
32 34
33 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleImpl); 35 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleImpl);
34 }; 36 };
35 37
36 } // namespace content 38 } // namespace webkit_glue
37 39
38 #endif // CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_IMPL_H_ 40 #endif // WEBKIT_CHILD_WEBSOCKETSTREAMHANDLE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/child/websocketstreamhandle_delegate.h ('k') | webkit/child/websocketstreamhandle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698