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

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: follow WebKit side renaming 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/memory/scoped_ptr.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 : public WebKit::WebSocketStreamHandle {
16 public: 17 public:
17 explicit WebSocketStreamHandleImpl(WebKitPlatformSupportImpl* platform); 18 explicit WebSocketStreamHandleImpl(WebKitPlatformSupportImpl* platform);
18 virtual ~WebSocketStreamHandleImpl(); 19 virtual ~WebSocketStreamHandleImpl();
19 20
20 // WebSocketStreamHandle methods: 21 // WebSocketStreamHandle methods:
21 virtual void connect( 22 virtual void connect(
22 const WebKit::WebURL& url, 23 const WebKit::WebURL& url,
23 WebKit::WebSocketStreamHandleClient* client); 24 WebKit::WebSocketStreamHandleClient* client) OVERRIDE;
24 virtual bool send(const WebKit::WebData& data); 25 virtual bool send(const WebKit::WebData& data) OVERRIDE;
25 virtual void close(); 26 virtual void close() OVERRIDE;
27
28 // Handle RenderView routing id associated with the WebSocket object.
jam 2012/03/15 02:01:19 nit: don't mention RenderView or routing_id's at t
Takashi Toyoshima 2012/03/15 22:49:03 Should I abstract them? In the case of WebKit side
29 int RequestorId() const { return requestor_id_; };
30 void SetRequestorId(int id) { requestor_id_ = id; };
26 31
27 private: 32 private:
28 class Context; 33 class Context;
29 scoped_refptr<Context> context_; 34 scoped_refptr<Context> context_;
30 WebKitPlatformSupportImpl* platform_; 35 WebKitPlatformSupportImpl* platform_;
36 int requestor_id_;
31 37
32 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleImpl); 38 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleImpl);
33 }; 39 };
34 40
35 } // namespace webkit_glue 41 } // namespace webkit_glue
36 42
37 #endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_ 43 #endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698