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

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

Issue 9677031: Bind RenderViewImpl routing_id to SocketStreamHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: static AddToHandle with render_view_id Created 8 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 (c) 2011 The Chromium Authors. All rights reserved. 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 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 WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_ 5 #ifndef WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_
6 #define WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_ 6 #define WEBKIT_GLUE_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 "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSocketStr eamHandle.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSocketStr eamHandle.h"
10 11
11 namespace webkit_glue { 12 namespace webkit_glue {
12 13
13 class WebKitPlatformSupportImpl; 14 class WebKitPlatformSupportImpl;
14 15
15 class WebSocketStreamHandleImpl : public WebKit::WebSocketStreamHandle { 16 class WebSocketStreamHandleImpl
17 : public base::SupportsUserData,
18 public WebKit::WebSocketStreamHandle {
16 public: 19 public:
17 explicit WebSocketStreamHandleImpl(WebKitPlatformSupportImpl* platform); 20 explicit WebSocketStreamHandleImpl(WebKitPlatformSupportImpl* platform);
18 virtual ~WebSocketStreamHandleImpl(); 21 virtual ~WebSocketStreamHandleImpl();
19 22
20 // WebSocketStreamHandle methods: 23 // WebSocketStreamHandle methods:
21 virtual void connect( 24 virtual void connect(
22 const WebKit::WebURL& url, 25 const WebKit::WebURL& url,
23 WebKit::WebSocketStreamHandleClient* client); 26 WebKit::WebSocketStreamHandleClient* client);
24 virtual bool send(const WebKit::WebData& data); 27 virtual bool send(const WebKit::WebData& data);
25 virtual void close(); 28 virtual void close();
26 29
27 private: 30 private:
28 class Context; 31 class Context;
29 scoped_refptr<Context> context_; 32 scoped_refptr<Context> context_;
30 WebKitPlatformSupportImpl* platform_; 33 WebKitPlatformSupportImpl* platform_;
31 34
32 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleImpl); 35 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleImpl);
33 }; 36 };
34 37
35 } // namespace webkit_glue 38 } // namespace webkit_glue
36 39
37 #endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_ 40 #endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698