| 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/webcrypto/webcrypto_impl.h" | 8 #include "content/child/webcrypto/webcrypto_impl.h" |
| 9 #include "content/child/webkitplatformsupport_impl.h" | 9 #include "content/child/webkitplatformsupport_impl.h" |
| 10 #include "content/child/websocket_bridge.h" | 10 #include "content/child/websocket_bridge.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 } | 23 } |
| 24 | 24 |
| 25 base::StringPiece WebKitPlatformSupportImpl::GetDataResource( | 25 base::StringPiece WebKitPlatformSupportImpl::GetDataResource( |
| 26 int resource_id, | 26 int resource_id, |
| 27 ui::ScaleFactor scale_factor) { | 27 ui::ScaleFactor scale_factor) { |
| 28 return GetContentClient()->GetDataResource(resource_id, scale_factor); | 28 return GetContentClient()->GetDataResource(resource_id, scale_factor); |
| 29 } | 29 } |
| 30 | 30 |
| 31 webkit_glue::ResourceLoaderBridge* | 31 webkit_glue::ResourceLoaderBridge* |
| 32 WebKitPlatformSupportImpl::CreateResourceLoader( | 32 WebKitPlatformSupportImpl::CreateResourceLoader( |
| 33 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { | 33 const RequestInfo& request_info) { |
| 34 return ChildThread::current()->CreateBridge(request_info); | 34 return ChildThread::current()->CreateBridge(request_info); |
| 35 } | 35 } |
| 36 | 36 |
| 37 WebSocketStreamHandleBridge* | 37 WebSocketStreamHandleBridge* |
| 38 WebKitPlatformSupportImpl::CreateWebSocketStreamBridge( | 38 WebKitPlatformSupportImpl::CreateWebSocketStreamBridge( |
| 39 blink::WebSocketStreamHandle* handle, | 39 blink::WebSocketStreamHandle* handle, |
| 40 WebSocketStreamHandleDelegate* delegate) { | 40 WebSocketStreamHandleDelegate* delegate) { |
| 41 SocketStreamDispatcher* dispatcher = | 41 SocketStreamDispatcher* dispatcher = |
| 42 ChildThread::current()->socket_stream_dispatcher(); | 42 ChildThread::current()->socket_stream_dispatcher(); |
| 43 return dispatcher->CreateBridge(handle, delegate); | 43 return dispatcher->CreateBridge(handle, delegate); |
| 44 } | 44 } |
| 45 | 45 |
| 46 blink::WebSocketHandle* WebKitPlatformSupportImpl::createWebSocketHandle() { | 46 blink::WebSocketHandle* WebKitPlatformSupportImpl::createWebSocketHandle() { |
| 47 return new WebSocketBridge; | 47 return new WebSocketBridge; |
| 48 } | 48 } |
| 49 | 49 |
| 50 blink::WebCrypto* WebKitPlatformSupportImpl::crypto() { | 50 blink::WebCrypto* WebKitPlatformSupportImpl::crypto() { |
| 51 if (!web_crypto_) | 51 if (!web_crypto_) |
| 52 web_crypto_.reset(new WebCryptoImpl()); | 52 web_crypto_.reset(new WebCryptoImpl()); |
| 53 return web_crypto_.get(); | 53 return web_crypto_.get(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 } // namespace content | 56 } // namespace content |
| OLD | NEW |