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

Side by Side Diff: content/child/webkitplatformsupport_impl.cc

Issue 22815034: Introduce webkit_glue bridges for the new WebSocket Implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
OLDNEW
1 // Copyright (c) 2012 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 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "content/child/child_thread.h" 6 #include "content/child/child_thread.h"
7 #include "content/child/socket_stream_dispatcher.h" 7 #include "content/child/socket_stream_dispatcher.h"
8 #include "content/child/webkitplatformsupport_impl.h" 8 #include "content/child/webkitplatformsupport_impl.h"
9 #include "content/public/common/content_client.h" 9 #include "content/public/common/content_client.h"
10 10
(...skipping 15 matching lines...) Expand all
26 return GetContentClient()->GetDataResource(resource_id, scale_factor); 26 return GetContentClient()->GetDataResource(resource_id, scale_factor);
27 } 27 }
28 28
29 webkit_glue::ResourceLoaderBridge* 29 webkit_glue::ResourceLoaderBridge*
30 WebKitPlatformSupportImpl::CreateResourceLoader( 30 WebKitPlatformSupportImpl::CreateResourceLoader(
31 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { 31 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) {
32 return ChildThread::current()->CreateBridge(request_info); 32 return ChildThread::current()->CreateBridge(request_info);
33 } 33 }
34 34
35 webkit_glue::WebSocketStreamHandleBridge* 35 webkit_glue::WebSocketStreamHandleBridge*
36 WebKitPlatformSupportImpl::CreateWebSocketBridge( 36 WebKitPlatformSupportImpl::CreateWebSocketStreamBridge(
37 WebKit::WebSocketStreamHandle* handle, 37 WebKit::WebSocketStreamHandle* handle,
38 webkit_glue::WebSocketStreamHandleDelegate* delegate) { 38 webkit_glue::WebSocketStreamHandleDelegate* delegate) {
39 SocketStreamDispatcher* dispatcher = 39 SocketStreamDispatcher* dispatcher =
40 ChildThread::current()->socket_stream_dispatcher(); 40 ChildThread::current()->socket_stream_dispatcher();
41 return dispatcher->CreateBridge(handle, delegate); 41 return dispatcher->CreateBridge(handle, delegate);
42 } 42 }
43 43
44 webkit_glue::WebSocketHandleBridge*
45 WebKitPlatformSupportImpl::CreateWebSocketBridge(
46 webkit_glue::WebSocketHandleDelegate* delegate) {
47 WebSocketDispatcher* dispatcher =
48 ChildThread::current()->websocket_dispatcher();
piman 2013/09/12 07:30:21 AFAICT this is always NULL.
yhirano 2013/09/13 12:32:29 Thanks, done, and I removed this function.
49 return dispatcher->CreateBridge(delegate);
50 }
51
44 } // namespace content 52 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698