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

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

Issue 1311853005: RTCCertificate and RTCPeerConnection.generateCertificate added to JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Chromium implementation of Blink interfaces. Addressed comments. Created 5 years, 2 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
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_blink_platform_impl.h" 5 #include "content/renderer/renderer_blink_platform_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/location.h" 10 #include "base/location.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "content/renderer/cache_storage/webserviceworkercachestorage_impl.h" 51 #include "content/renderer/cache_storage/webserviceworkercachestorage_impl.h"
52 #include "content/renderer/device_sensors/device_light_event_pump.h" 52 #include "content/renderer/device_sensors/device_light_event_pump.h"
53 #include "content/renderer/device_sensors/device_motion_event_pump.h" 53 #include "content/renderer/device_sensors/device_motion_event_pump.h"
54 #include "content/renderer/device_sensors/device_orientation_event_pump.h" 54 #include "content/renderer/device_sensors/device_orientation_event_pump.h"
55 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" 55 #include "content/renderer/dom_storage/webstoragenamespace_impl.h"
56 #include "content/renderer/gamepad_shared_memory_reader.h" 56 #include "content/renderer/gamepad_shared_memory_reader.h"
57 #include "content/renderer/media/audio_decoder.h" 57 #include "content/renderer/media/audio_decoder.h"
58 #include "content/renderer/media/media_recorder_handler.h" 58 #include "content/renderer/media/media_recorder_handler.h"
59 #include "content/renderer/media/renderer_webaudiodevice_impl.h" 59 #include "content/renderer/media/renderer_webaudiodevice_impl.h"
60 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" 60 #include "content/renderer/media/renderer_webmidiaccessor_impl.h"
61 #include "content/renderer/media/rtc_certificate_generator.h"
61 #include "content/renderer/render_thread_impl.h" 62 #include "content/renderer/render_thread_impl.h"
62 #include "content/renderer/renderer_clipboard_delegate.h" 63 #include "content/renderer/renderer_clipboard_delegate.h"
63 #include "content/renderer/screen_orientation/screen_orientation_observer.h" 64 #include "content/renderer/screen_orientation/screen_orientation_observer.h"
64 #include "content/renderer/webclipboard_impl.h" 65 #include "content/renderer/webclipboard_impl.h"
65 #include "content/renderer/webgraphicscontext3d_provider_impl.h" 66 #include "content/renderer/webgraphicscontext3d_provider_impl.h"
66 #include "content/renderer/webpublicsuffixlist_impl.h" 67 #include "content/renderer/webpublicsuffixlist_impl.h"
67 #include "gpu/config/gpu_info.h" 68 #include "gpu/config/gpu_info.h"
68 #include "ipc/ipc_sync_message_filter.h" 69 #include "ipc/ipc_sync_message_filter.h"
69 #include "media/audio/audio_output_device.h" 70 #include "media/audio/audio_output_device.h"
70 #include "media/base/audio_hardware_config.h" 71 #include "media/base/audio_hardware_config.h"
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 PeerConnectionDependencyFactory* rtc_dependency_factory = 913 PeerConnectionDependencyFactory* rtc_dependency_factory =
913 render_thread->GetPeerConnectionDependencyFactory(); 914 render_thread->GetPeerConnectionDependencyFactory();
914 return rtc_dependency_factory->CreateRTCPeerConnectionHandler(client); 915 return rtc_dependency_factory->CreateRTCPeerConnectionHandler(client);
915 #else 916 #else
916 return NULL; 917 return NULL;
917 #endif // defined(ENABLE_WEBRTC) 918 #endif // defined(ENABLE_WEBRTC)
918 } 919 }
919 920
920 //------------------------------------------------------------------------------ 921 //------------------------------------------------------------------------------
921 922
923 blink::WebRTCCertificateGenerator*
924 RendererBlinkPlatformImpl::createRTCCertificateGenerator() {
925 #if defined(ENABLE_WEBRTC)
926 return new RTCCertificateGenerator();
927 #else
928 return NULL;
929 #endif // defined(ENABLE_WEBRTC)
930 }
931
932 //------------------------------------------------------------------------------
933
922 WebMediaStreamCenter* RendererBlinkPlatformImpl::createMediaStreamCenter( 934 WebMediaStreamCenter* RendererBlinkPlatformImpl::createMediaStreamCenter(
923 WebMediaStreamCenterClient* client) { 935 WebMediaStreamCenterClient* client) {
924 RenderThreadImpl* render_thread = RenderThreadImpl::current(); 936 RenderThreadImpl* render_thread = RenderThreadImpl::current();
925 DCHECK(render_thread); 937 DCHECK(render_thread);
926 if (!render_thread) 938 if (!render_thread)
927 return NULL; 939 return NULL;
928 return render_thread->CreateMediaStreamCenter(client); 940 return render_thread->CreateMediaStreamCenter(client);
929 } 941 }
930 942
931 // static 943 // static
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 //------------------------------------------------------------------------------ 1278 //------------------------------------------------------------------------------
1267 1279
1268 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( 1280 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting(
1269 const blink::WebBatteryStatus& status) { 1281 const blink::WebBatteryStatus& status) {
1270 if (!g_test_battery_status_listener) 1282 if (!g_test_battery_status_listener)
1271 return; 1283 return;
1272 g_test_battery_status_listener->updateBatteryStatus(status); 1284 g_test_battery_status_listener->updateBatteryStatus(status);
1273 } 1285 }
1274 1286
1275 } // namespace content 1287 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | third_party/WebKit/Source/modules/mediastream/RTCCertificate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698