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/webkitplatformsupport_impl.h" | 9 #include "content/child/webkitplatformsupport_impl.h" |
9 #include "content/child/websocket_bridge.h" | 10 #include "content/child/websocket_bridge.h" |
10 #include "content/public/common/content_client.h" | 11 #include "content/public/common/content_client.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 | 14 |
14 WebKitPlatformSupportImpl::WebKitPlatformSupportImpl() { | 15 WebKitPlatformSupportImpl::WebKitPlatformSupportImpl() { |
15 } | 16 } |
16 | 17 |
17 WebKitPlatformSupportImpl::~WebKitPlatformSupportImpl() { | 18 WebKitPlatformSupportImpl::~WebKitPlatformSupportImpl() { |
(...skipping 21 matching lines...) Expand all Loading... |
39 WebSocketStreamHandleDelegate* delegate) { | 40 WebSocketStreamHandleDelegate* delegate) { |
40 SocketStreamDispatcher* dispatcher = | 41 SocketStreamDispatcher* dispatcher = |
41 ChildThread::current()->socket_stream_dispatcher(); | 42 ChildThread::current()->socket_stream_dispatcher(); |
42 return dispatcher->CreateBridge(handle, delegate); | 43 return dispatcher->CreateBridge(handle, delegate); |
43 } | 44 } |
44 | 45 |
45 blink::WebSocketHandle* WebKitPlatformSupportImpl::createWebSocketHandle() { | 46 blink::WebSocketHandle* WebKitPlatformSupportImpl::createWebSocketHandle() { |
46 return new WebSocketBridge; | 47 return new WebSocketBridge; |
47 } | 48 } |
48 | 49 |
| 50 blink::WebCrypto* WebKitPlatformSupportImpl::crypto() { |
| 51 if (!web_crypto_) |
| 52 web_crypto_.reset(new WebCryptoImpl()); |
| 53 return web_crypto_.get(); |
| 54 } |
| 55 |
49 } // namespace content | 56 } // namespace content |
OLD | NEW |