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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 19355002: Add chromium side implementation of WebKit::WebCrypto. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto master Created 7 years, 5 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
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 "content/renderer/renderer_webkitplatformsupport_impl.h" 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 22 matching lines...) Expand all
33 #include "content/renderer/hyphenator/hyphenator.h" 33 #include "content/renderer/hyphenator/hyphenator.h"
34 #include "content/renderer/media/audio_decoder.h" 34 #include "content/renderer/media/audio_decoder.h"
35 #include "content/renderer/media/crypto/key_systems.h" 35 #include "content/renderer/media/crypto/key_systems.h"
36 #include "content/renderer/media/media_stream_dependency_factory.h" 36 #include "content/renderer/media/media_stream_dependency_factory.h"
37 #include "content/renderer/media/renderer_webaudiodevice_impl.h" 37 #include "content/renderer/media/renderer_webaudiodevice_impl.h"
38 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" 38 #include "content/renderer/media/renderer_webmidiaccessor_impl.h"
39 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" 39 #include "content/renderer/media/webcontentdecryptionmodule_impl.h"
40 #include "content/renderer/render_thread_impl.h" 40 #include "content/renderer/render_thread_impl.h"
41 #include "content/renderer/renderer_clipboard_client.h" 41 #include "content/renderer/renderer_clipboard_client.h"
42 #include "content/renderer/webclipboard_impl.h" 42 #include "content/renderer/webclipboard_impl.h"
43 #include "content/renderer/webcrypto_impl.h"
43 #include "content/renderer/websharedworkerrepository_impl.h" 44 #include "content/renderer/websharedworkerrepository_impl.h"
44 #include "gpu/config/gpu_info.h" 45 #include "gpu/config/gpu_info.h"
45 #include "ipc/ipc_sync_message_filter.h" 46 #include "ipc/ipc_sync_message_filter.h"
46 #include "media/audio/audio_output_device.h" 47 #include "media/audio/audio_output_device.h"
47 #include "media/base/audio_hardware_config.h" 48 #include "media/base/audio_hardware_config.h"
48 #include "media/filters/stream_parser_factory.h" 49 #include "media/filters/stream_parser_factory.h"
49 #include "net/base/mime_util.h" 50 #include "net/base/mime_util.h"
50 #include "net/base/net_util.h" 51 #include "net/base/net_util.h"
51 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" 52 #include "third_party/WebKit/public/platform/WebBlobRegistry.h"
52 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h" 53 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h"
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 g_test_device_motion_data.Get())); 1083 g_test_device_motion_data.Get()));
1083 } 1084 }
1084 } 1085 }
1085 1086
1086 // static 1087 // static
1087 void RendererWebKitPlatformSupportImpl::SetMockDeviceMotionDataForTesting( 1088 void RendererWebKitPlatformSupportImpl::SetMockDeviceMotionDataForTesting(
1088 const WebKit::WebDeviceMotionData& data) { 1089 const WebKit::WebDeviceMotionData& data) {
1089 g_test_device_motion_data.Get() = data; 1090 g_test_device_motion_data.Get() = data;
1090 } 1091 }
1091 1092
1093 //------------------------------------------------------------------------------
1094
1095 WebKit::WebCrypto* RendererWebKitPlatformSupportImpl::crypto() {
1096 if (!web_crypto_)
1097 web_crypto_.reset(new WebCryptoImpl());
1098 return web_crypto_.get();
1099
1100 }
1101
1092 } // namespace content 1102 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | content/renderer/webcrypto_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698