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

Side by Side Diff: webkit/tools/test_shell/simple_socket_stream_bridge.cc

Issue 8602002: Move some webkit_glue embedder functions into WebKitPlatformSupport virtual methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: correct review items Created 9 years, 1 month 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) 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698