| OLD | NEW |
| 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/child/websocket_bridge.h" | 9 #include "content/child/websocket_bridge.h" |
| 10 #include "content/public/common/content_client.h" | 10 #include "content/public/common/content_client.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 } | 28 } |
| 29 | 29 |
| 30 webkit_glue::ResourceLoaderBridge* | 30 webkit_glue::ResourceLoaderBridge* |
| 31 WebKitPlatformSupportImpl::CreateResourceLoader( | 31 WebKitPlatformSupportImpl::CreateResourceLoader( |
| 32 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { | 32 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { |
| 33 return ChildThread::current()->CreateBridge(request_info); | 33 return ChildThread::current()->CreateBridge(request_info); |
| 34 } | 34 } |
| 35 | 35 |
| 36 webkit_glue::WebSocketStreamHandleBridge* | 36 webkit_glue::WebSocketStreamHandleBridge* |
| 37 WebKitPlatformSupportImpl::CreateWebSocketStreamBridge( | 37 WebKitPlatformSupportImpl::CreateWebSocketStreamBridge( |
| 38 WebKit::WebSocketStreamHandle* handle, | 38 blink::WebSocketStreamHandle* handle, |
| 39 webkit_glue::WebSocketStreamHandleDelegate* delegate) { | 39 webkit_glue::WebSocketStreamHandleDelegate* delegate) { |
| 40 SocketStreamDispatcher* dispatcher = | 40 SocketStreamDispatcher* dispatcher = |
| 41 ChildThread::current()->socket_stream_dispatcher(); | 41 ChildThread::current()->socket_stream_dispatcher(); |
| 42 return dispatcher->CreateBridge(handle, delegate); | 42 return dispatcher->CreateBridge(handle, delegate); |
| 43 } | 43 } |
| 44 | 44 |
| 45 WebKit::WebSocketHandle* WebKitPlatformSupportImpl::createWebSocketHandle() { | 45 blink::WebSocketHandle* WebKitPlatformSupportImpl::createWebSocketHandle() { |
| 46 return new WebSocketBridge; | 46 return new WebSocketBridge; |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace content | 49 } // namespace content |
| OLD | NEW |