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

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

Issue 1373023002: RTCCertificate, RTCPeerConnection.generateCertificate (WebRTC JavaScript) added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed jochen's 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 #include "content/renderer/cache_storage/webserviceworkercachestorage_impl.h" 53 #include "content/renderer/cache_storage/webserviceworkercachestorage_impl.h"
54 #include "content/renderer/device_sensors/device_light_event_pump.h" 54 #include "content/renderer/device_sensors/device_light_event_pump.h"
55 #include "content/renderer/device_sensors/device_motion_event_pump.h" 55 #include "content/renderer/device_sensors/device_motion_event_pump.h"
56 #include "content/renderer/device_sensors/device_orientation_event_pump.h" 56 #include "content/renderer/device_sensors/device_orientation_event_pump.h"
57 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" 57 #include "content/renderer/dom_storage/webstoragenamespace_impl.h"
58 #include "content/renderer/gamepad_shared_memory_reader.h" 58 #include "content/renderer/gamepad_shared_memory_reader.h"
59 #include "content/renderer/media/audio_decoder.h" 59 #include "content/renderer/media/audio_decoder.h"
60 #include "content/renderer/media/media_recorder_handler.h" 60 #include "content/renderer/media/media_recorder_handler.h"
61 #include "content/renderer/media/renderer_webaudiodevice_impl.h" 61 #include "content/renderer/media/renderer_webaudiodevice_impl.h"
62 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" 62 #include "content/renderer/media/renderer_webmidiaccessor_impl.h"
63 #include "content/renderer/media/rtc_certificate_generator.h"
63 #include "content/renderer/render_thread_impl.h" 64 #include "content/renderer/render_thread_impl.h"
64 #include "content/renderer/renderer_clipboard_delegate.h" 65 #include "content/renderer/renderer_clipboard_delegate.h"
65 #include "content/renderer/screen_orientation/screen_orientation_observer.h" 66 #include "content/renderer/screen_orientation/screen_orientation_observer.h"
66 #include "content/renderer/webclipboard_impl.h" 67 #include "content/renderer/webclipboard_impl.h"
67 #include "content/renderer/webgraphicscontext3d_provider_impl.h" 68 #include "content/renderer/webgraphicscontext3d_provider_impl.h"
68 #include "content/renderer/webpublicsuffixlist_impl.h" 69 #include "content/renderer/webpublicsuffixlist_impl.h"
69 #include "gpu/config/gpu_info.h" 70 #include "gpu/config/gpu_info.h"
70 #include "ipc/ipc_sync_message_filter.h" 71 #include "ipc/ipc_sync_message_filter.h"
71 #include "media/audio/audio_output_device.h" 72 #include "media/audio/audio_output_device.h"
72 #include "media/base/audio_hardware_config.h" 73 #include "media/base/audio_hardware_config.h"
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 PeerConnectionDependencyFactory* rtc_dependency_factory = 921 PeerConnectionDependencyFactory* rtc_dependency_factory =
921 render_thread->GetPeerConnectionDependencyFactory(); 922 render_thread->GetPeerConnectionDependencyFactory();
922 return rtc_dependency_factory->CreateRTCPeerConnectionHandler(client); 923 return rtc_dependency_factory->CreateRTCPeerConnectionHandler(client);
923 #else 924 #else
924 return NULL; 925 return NULL;
925 #endif // defined(ENABLE_WEBRTC) 926 #endif // defined(ENABLE_WEBRTC)
926 } 927 }
927 928
928 //------------------------------------------------------------------------------ 929 //------------------------------------------------------------------------------
929 930
931 blink::WebRTCCertificateGenerator*
932 RendererBlinkPlatformImpl::createRTCCertificateGenerator() {
933 #if defined(ENABLE_WEBRTC)
934 return new RTCCertificateGenerator();
935 #else
936 return nullptr;
937 #endif // defined(ENABLE_WEBRTC)
938 }
939
940 //------------------------------------------------------------------------------
941
930 WebMediaStreamCenter* RendererBlinkPlatformImpl::createMediaStreamCenter( 942 WebMediaStreamCenter* RendererBlinkPlatformImpl::createMediaStreamCenter(
931 WebMediaStreamCenterClient* client) { 943 WebMediaStreamCenterClient* client) {
932 RenderThreadImpl* render_thread = RenderThreadImpl::current(); 944 RenderThreadImpl* render_thread = RenderThreadImpl::current();
933 DCHECK(render_thread); 945 DCHECK(render_thread);
934 if (!render_thread) 946 if (!render_thread)
935 return NULL; 947 return NULL;
936 return render_thread->CreateMediaStreamCenter(client); 948 return render_thread->CreateMediaStreamCenter(client);
937 } 949 }
938 950
939 // static 951 // static
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 //------------------------------------------------------------------------------ 1273 //------------------------------------------------------------------------------
1262 1274
1263 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( 1275 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting(
1264 const blink::WebBatteryStatus& status) { 1276 const blink::WebBatteryStatus& status) {
1265 if (!g_test_battery_status_listener) 1277 if (!g_test_battery_status_listener)
1266 return; 1278 return;
1267 g_test_battery_status_listener->updateBatteryStatus(status); 1279 g_test_battery_status_listener->updateBatteryStatus(status);
1268 } 1280 }
1269 1281
1270 } // namespace content 1282 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698