| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #include <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "webkit/tools/test_shell/simple_socket_stream_bridge.h" | 7 #include "webkit/tools/test_shell/simple_socket_stream_bridge.h" |
| 8 | 8 |
| 9 #include "base/atomicops.h" | 9 #include "base/atomicops.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 g_request_context->AddRef(); | 227 g_request_context->AddRef(); |
| 228 } | 228 } |
| 229 | 229 |
| 230 void SimpleSocketStreamBridge::Cleanup() { | 230 void SimpleSocketStreamBridge::Cleanup() { |
| 231 g_io_thread = NULL; | 231 g_io_thread = NULL; |
| 232 if (g_request_context) | 232 if (g_request_context) |
| 233 g_request_context->Release(); | 233 g_request_context->Release(); |
| 234 g_request_context = NULL; | 234 g_request_context = NULL; |
| 235 } | 235 } |
| 236 | 236 |
| 237 namespace webkit_glue { | |
| 238 | |
| 239 /* static */ | 237 /* static */ |
| 240 WebSocketStreamHandleBridge* WebSocketStreamHandleBridge::Create( | 238 webkit_glue::WebSocketStreamHandleBridge* SimpleSocketStreamBridge::Create( |
| 241 WebKit::WebSocketStreamHandle* handle, | 239 WebKit::WebSocketStreamHandle* handle, |
| 242 WebSocketStreamHandleDelegate* delegate) { | 240 webkit_glue::WebSocketStreamHandleDelegate* delegate) { |
| 243 return new WebSocketStreamHandleBridgeImpl(handle, delegate); | 241 return new WebSocketStreamHandleBridgeImpl(handle, delegate); |
| 244 } | 242 } |
| 245 | |
| 246 } // namespace webkit_glue | |
| OLD | NEW |