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

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

Issue 1486623004: MediaStreamRecorder: enable in Android (including linking libwebm) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Connect RendererBlinkPlatformImpl::createMediaRecorderHandler() Created 5 years 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
« no previous file with comments | « content/renderer/media/media_recorder_handler.cc ('k') | media/BUILD.gn » ('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 "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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 platform_event_observers_.Lookup(blink::WebPlatformEventTypeGamepad); 871 platform_event_observers_.Lookup(blink::WebPlatformEventTypeGamepad);
872 if (!observer) 872 if (!observer)
873 return; 873 return;
874 static_cast<RendererGamepadProvider*>(observer)->SampleGamepads(gamepads); 874 static_cast<RendererGamepadProvider*>(observer)->SampleGamepads(gamepads);
875 } 875 }
876 876
877 //------------------------------------------------------------------------------ 877 //------------------------------------------------------------------------------
878 878
879 WebMediaRecorderHandler* 879 WebMediaRecorderHandler*
880 RendererBlinkPlatformImpl::createMediaRecorderHandler() { 880 RendererBlinkPlatformImpl::createMediaRecorderHandler() {
881 #if !defined(OS_ANDROID) && defined(ENABLE_WEBRTC) 881 #if defined(ENABLE_WEBRTC)
882 return new content::MediaRecorderHandler(); 882 return new content::MediaRecorderHandler();
883 #else 883 #else
884 return nullptr; 884 return nullptr;
885 #endif 885 #endif
886 } 886 }
887 887
888 //------------------------------------------------------------------------------ 888 //------------------------------------------------------------------------------
889 889
890 WebRTCPeerConnectionHandler* 890 WebRTCPeerConnectionHandler*
891 RendererBlinkPlatformImpl::createRTCPeerConnectionHandler( 891 RendererBlinkPlatformImpl::createRTCPeerConnectionHandler(
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 //------------------------------------------------------------------------------ 1275 //------------------------------------------------------------------------------
1276 1276
1277 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( 1277 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting(
1278 const blink::WebBatteryStatus& status) { 1278 const blink::WebBatteryStatus& status) {
1279 if (!g_test_battery_status_listener) 1279 if (!g_test_battery_status_listener)
1280 return; 1280 return;
1281 g_test_battery_status_listener->updateBatteryStatus(status); 1281 g_test_battery_status_listener->updateBatteryStatus(status);
1282 } 1282 }
1283 1283
1284 } // namespace content 1284 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/media_recorder_handler.cc ('k') | media/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698