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

Side by Side Diff: webkit/glue/websocketstreamhandle_impl.h

Issue 20003004: reland crrev.com/212927 Move webkitplatformsupport_impl and related from glue to child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & allocator dep for components_unittests in shared_library2 Created 7 years, 5 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
« no previous file with comments | « webkit/glue/websocketstreamhandle_delegate.h ('k') | webkit/glue/websocketstreamhandle_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_
6 #define WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/supports_user_data.h"
10 #include "third_party/WebKit/public/platform/WebSocketStreamHandle.h"
11
12 namespace webkit_glue {
13
14 class WebKitPlatformSupportImpl;
15
16 class WebSocketStreamHandleImpl
17 : public base::SupportsUserData,
18 public WebKit::WebSocketStreamHandle {
19 public:
20 explicit WebSocketStreamHandleImpl(WebKitPlatformSupportImpl* platform);
21 virtual ~WebSocketStreamHandleImpl();
22
23 // WebSocketStreamHandle methods:
24 virtual void connect(
25 const WebKit::WebURL& url,
26 WebKit::WebSocketStreamHandleClient* client);
27 virtual bool send(const WebKit::WebData& data);
28 virtual void close();
29
30 private:
31 class Context;
32 scoped_refptr<Context> context_;
33 WebKitPlatformSupportImpl* platform_;
34
35 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleImpl);
36 };
37
38 } // namespace webkit_glue
39
40 #endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/websocketstreamhandle_delegate.h ('k') | webkit/glue/websocketstreamhandle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698