| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 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_SUPPORT_SIMPLE_SOCKET_STREAM_BRIDGE_H_ | |
| 6 #define WEBKIT_SUPPORT_SIMPLE_SOCKET_STREAM_BRIDGE_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 | |
| 10 namespace net { | |
| 11 class URLRequestContext; | |
| 12 } // namespace net | |
| 13 | |
| 14 namespace WebKit { | |
| 15 class WebSocketStreamHandle; | |
| 16 } // namespace WebKit | |
| 17 | |
| 18 namespace webkit_glue { | |
| 19 class WebSocketStreamHandleDelegate; | |
| 20 class WebSocketStreamHandleBridge; | |
| 21 } // namespace webkit_glue | |
| 22 | |
| 23 class SimpleSocketStreamBridge { | |
| 24 public: | |
| 25 static void InitializeOnIOThread(net::URLRequestContext* request_context); | |
| 26 static void Cleanup(); | |
| 27 static webkit_glue::WebSocketStreamHandleBridge* Create( | |
| 28 WebKit::WebSocketStreamHandle* handle, | |
| 29 webkit_glue::WebSocketStreamHandleDelegate* delegate); | |
| 30 | |
| 31 private: | |
| 32 DISALLOW_IMPLICIT_CONSTRUCTORS(SimpleSocketStreamBridge); | |
| 33 }; | |
| 34 | |
| 35 #endif // WEBKIT_SUPPORT_SIMPLE_SOCKET_STREAM_BRIDGE_H_ | |
| OLD | NEW |