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

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

Issue 188203003: Move webcrypto to child/ and add support to worker_webkitplatformsupport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes to gypis Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « content/child/webkitplatformsupport_impl.h ('k') | content/content_child.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« no previous file with comments | « content/child/webkitplatformsupport_impl.h ('k') | content/content_child.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698