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

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

Issue 1330873002: MediaRecorderHandler: connecting Blink factory method to content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forward declaring WebMediaRecorderHandlerClient (ISO including full header) Created 5 years, 3 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
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | no next file » | 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "content/public/common/webplugininfo.h" 48 #include "content/public/common/webplugininfo.h"
49 #include "content/public/renderer/content_renderer_client.h" 49 #include "content/public/renderer/content_renderer_client.h"
50 #include "content/renderer/battery_status/battery_status_dispatcher.h" 50 #include "content/renderer/battery_status/battery_status_dispatcher.h"
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/renderer_webaudiodevice_impl.h" 59 #include "content/renderer/media/renderer_webaudiodevice_impl.h"
59 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" 60 #include "content/renderer/media/renderer_webmidiaccessor_impl.h"
60 #include "content/renderer/render_thread_impl.h" 61 #include "content/renderer/render_thread_impl.h"
61 #include "content/renderer/renderer_clipboard_delegate.h" 62 #include "content/renderer/renderer_clipboard_delegate.h"
62 #include "content/renderer/screen_orientation/screen_orientation_observer.h" 63 #include "content/renderer/screen_orientation/screen_orientation_observer.h"
63 #include "content/renderer/webclipboard_impl.h" 64 #include "content/renderer/webclipboard_impl.h"
64 #include "content/renderer/webgraphicscontext3d_provider_impl.h" 65 #include "content/renderer/webgraphicscontext3d_provider_impl.h"
65 #include "content/renderer/webpublicsuffixlist_impl.h" 66 #include "content/renderer/webpublicsuffixlist_impl.h"
66 #include "gpu/config/gpu_info.h" 67 #include "gpu/config/gpu_info.h"
67 #include "ipc/ipc_sync_message_filter.h" 68 #include "ipc/ipc_sync_message_filter.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 using blink::Platform; 134 using blink::Platform;
134 using blink::WebAudioDevice; 135 using blink::WebAudioDevice;
135 using blink::WebBlobRegistry; 136 using blink::WebBlobRegistry;
136 using blink::WebDatabaseObserver; 137 using blink::WebDatabaseObserver;
137 using blink::WebFileInfo; 138 using blink::WebFileInfo;
138 using blink::WebFileSystem; 139 using blink::WebFileSystem;
139 using blink::WebGamepad; 140 using blink::WebGamepad;
140 using blink::WebGamepads; 141 using blink::WebGamepads;
141 using blink::WebIDBFactory; 142 using blink::WebIDBFactory;
142 using blink::WebMIDIAccessor; 143 using blink::WebMIDIAccessor;
144 using blink::WebMediaRecorderHandler;
143 using blink::WebMediaStreamCenter; 145 using blink::WebMediaStreamCenter;
144 using blink::WebMediaStreamCenterClient; 146 using blink::WebMediaStreamCenterClient;
145 using blink::WebMimeRegistry; 147 using blink::WebMimeRegistry;
146 using blink::WebRTCPeerConnectionHandler; 148 using blink::WebRTCPeerConnectionHandler;
147 using blink::WebRTCPeerConnectionHandlerClient; 149 using blink::WebRTCPeerConnectionHandlerClient;
148 using blink::WebStorageNamespace; 150 using blink::WebStorageNamespace;
149 using blink::WebString; 151 using blink::WebString;
150 using blink::WebURL; 152 using blink::WebURL;
151 using blink::WebVector; 153 using blink::WebVector;
152 154
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 void RendererBlinkPlatformImpl::sampleGamepads(WebGamepads& gamepads) { 866 void RendererBlinkPlatformImpl::sampleGamepads(WebGamepads& gamepads) {
865 PlatformEventObserverBase* observer = 867 PlatformEventObserverBase* observer =
866 platform_event_observers_.Lookup(blink::WebPlatformEventGamepad); 868 platform_event_observers_.Lookup(blink::WebPlatformEventGamepad);
867 if (!observer) 869 if (!observer)
868 return; 870 return;
869 static_cast<RendererGamepadProvider*>(observer)->SampleGamepads(gamepads); 871 static_cast<RendererGamepadProvider*>(observer)->SampleGamepads(gamepads);
870 } 872 }
871 873
872 //------------------------------------------------------------------------------ 874 //------------------------------------------------------------------------------
873 875
876 WebMediaRecorderHandler*
877 RendererBlinkPlatformImpl::createMediaRecorderHandler() {
878 #if !defined(OS_ANDROID)
879 return new content::MediaRecorderHandler();
880 #else
881 return nullptr;
882 #endif
883 }
884
885 //------------------------------------------------------------------------------
886
874 WebRTCPeerConnectionHandler* 887 WebRTCPeerConnectionHandler*
875 RendererBlinkPlatformImpl::createRTCPeerConnectionHandler( 888 RendererBlinkPlatformImpl::createRTCPeerConnectionHandler(
876 WebRTCPeerConnectionHandlerClient* client) { 889 WebRTCPeerConnectionHandlerClient* client) {
877 RenderThreadImpl* render_thread = RenderThreadImpl::current(); 890 RenderThreadImpl* render_thread = RenderThreadImpl::current();
878 DCHECK(render_thread); 891 DCHECK(render_thread);
879 if (!render_thread) 892 if (!render_thread)
880 return NULL; 893 return NULL;
881 894
882 #if defined(ENABLE_WEBRTC) 895 #if defined(ENABLE_WEBRTC)
883 WebRTCPeerConnectionHandler* peer_connection_handler = 896 WebRTCPeerConnectionHandler* peer_connection_handler =
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 //------------------------------------------------------------------------------ 1255 //------------------------------------------------------------------------------
1243 1256
1244 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( 1257 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting(
1245 const blink::WebBatteryStatus& status) { 1258 const blink::WebBatteryStatus& status) {
1246 if (!g_test_battery_status_listener) 1259 if (!g_test_battery_status_listener)
1247 return; 1260 return;
1248 g_test_battery_status_listener->updateBatteryStatus(status); 1261 g_test_battery_status_listener->updateBatteryStatus(status);
1249 } 1262 }
1250 1263
1251 } // namespace content 1264 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698