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

Unified Diff: webkit/tools/test_shell/simple_socket_stream_bridge.cc

Issue 316008: Make WebSocketStreamHandleBridge RefCountedThreadSafe. (Closed)
Patch Set: Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/websocketstreamhandle_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/simple_socket_stream_bridge.cc
diff --git a/webkit/tools/test_shell/simple_socket_stream_bridge.cc b/webkit/tools/test_shell/simple_socket_stream_bridge.cc
index c8380cd401986fb0843654b5e949f2612bcf0812..508b9439ff226483f78bdd1457c9b1ada6a6444a 100644
--- a/webkit/tools/test_shell/simple_socket_stream_bridge.cc
+++ b/webkit/tools/test_shell/simple_socket_stream_bridge.cc
@@ -25,14 +25,12 @@ MessageLoop* g_io_thread;
scoped_refptr<URLRequestContext> g_request_context;
class WebSocketStreamHandleBridgeImpl
- : public base::RefCountedThreadSafe<WebSocketStreamHandleBridgeImpl>,
- public WebSocketStreamHandleBridge,
+ : public WebSocketStreamHandleBridge,
public net::SocketStream::Delegate {
public:
WebSocketStreamHandleBridgeImpl(
WebKit::WebSocketStreamHandle* handle,
webkit_glue::WebSocketStreamHandleDelegate* delegate);
- virtual ~WebSocketStreamHandleBridgeImpl();
// WebSocketStreamHandleBridge methods.
virtual void Connect(const GURL& url);
@@ -48,8 +46,9 @@ class WebSocketStreamHandleBridgeImpl
const char* data, int len);
virtual void OnClose(net::SocketStream* req);
-
private:
+ virtual ~WebSocketStreamHandleBridgeImpl();
+
// Runs on |g_io_thread|;
void DoConnect(const GURL& url);
void DoSend(std::vector<char>* data);
« no previous file with comments | « webkit/glue/websocketstreamhandle_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698