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

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

Issue 16025005: Web MIDI API back-end (work-in-progress) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add stub for non-OSX MIDIManagers Created 7 years, 6 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/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" 57 #include "content/renderer/dom_storage/webstoragenamespace_impl.h"
58 #include "content/renderer/gpu/compositor_output_surface.h" 58 #include "content/renderer/gpu/compositor_output_surface.h"
59 #include "content/renderer/gpu/gpu_benchmarking_extension.h" 59 #include "content/renderer/gpu/gpu_benchmarking_extension.h"
60 #include "content/renderer/gpu/input_event_filter.h" 60 #include "content/renderer/gpu/input_event_filter.h"
61 #include "content/renderer/gpu/input_handler_manager.h" 61 #include "content/renderer/gpu/input_handler_manager.h"
62 #include "content/renderer/media/audio_input_message_filter.h" 62 #include "content/renderer/media/audio_input_message_filter.h"
63 #include "content/renderer/media/audio_message_filter.h" 63 #include "content/renderer/media/audio_message_filter.h"
64 #include "content/renderer/media/audio_renderer_mixer_manager.h" 64 #include "content/renderer/media/audio_renderer_mixer_manager.h"
65 #include "content/renderer/media/media_stream_center.h" 65 #include "content/renderer/media/media_stream_center.h"
66 #include "content/renderer/media/media_stream_dependency_factory.h" 66 #include "content/renderer/media/media_stream_dependency_factory.h"
67 #include "content/renderer/media/midi_message_filter.h"
67 #include "content/renderer/media/peer_connection_tracker.h" 68 #include "content/renderer/media/peer_connection_tracker.h"
68 #include "content/renderer/media/video_capture_impl_manager.h" 69 #include "content/renderer/media/video_capture_impl_manager.h"
69 #include "content/renderer/media/video_capture_message_filter.h" 70 #include "content/renderer/media/video_capture_message_filter.h"
70 #include "content/renderer/memory_benchmarking_extension.h" 71 #include "content/renderer/memory_benchmarking_extension.h"
71 #include "content/renderer/p2p/socket_dispatcher.h" 72 #include "content/renderer/p2p/socket_dispatcher.h"
72 #include "content/renderer/plugin_channel_host.h" 73 #include "content/renderer/plugin_channel_host.h"
73 #include "content/renderer/render_process_impl.h" 74 #include "content/renderer/render_process_impl.h"
74 #include "content/renderer/render_view_impl.h" 75 #include "content/renderer/render_view_impl.h"
75 #include "content/renderer/renderer_webkitplatformsupport_impl.h" 76 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
76 #include "content/renderer/skia_benchmarking_extension.h" 77 #include "content/renderer/skia_benchmarking_extension.h"
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 vc_manager_ = new VideoCaptureImplManager(); 386 vc_manager_ = new VideoCaptureImplManager();
386 AddFilter(vc_manager_->video_capture_message_filter()); 387 AddFilter(vc_manager_->video_capture_message_filter());
387 388
388 audio_input_message_filter_ = 389 audio_input_message_filter_ =
389 new AudioInputMessageFilter(GetIOMessageLoopProxy()); 390 new AudioInputMessageFilter(GetIOMessageLoopProxy());
390 AddFilter(audio_input_message_filter_.get()); 391 AddFilter(audio_input_message_filter_.get());
391 392
392 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy()); 393 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy());
393 AddFilter(audio_message_filter_.get()); 394 AddFilter(audio_message_filter_.get());
394 395
396 midi_message_filter_ = new MIDIMessageFilter(GetIOMessageLoopProxy());
397 AddFilter(midi_message_filter_.get());
398
395 AddFilter(new IndexedDBMessageFilter); 399 AddFilter(new IndexedDBMessageFilter);
396 400
397 GetContentClient()->renderer()->RenderThreadStarted(); 401 GetContentClient()->renderer()->RenderThreadStarted();
398 402
399 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 403 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
400 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking)) 404 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking))
401 RegisterExtension(GpuBenchmarkingExtension::Get()); 405 RegisterExtension(GpuBenchmarkingExtension::Get());
402 406
403 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 407 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
404 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) 408 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking))
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 1262
1259 void RenderThreadImpl::SetFlingCurveParameters( 1263 void RenderThreadImpl::SetFlingCurveParameters(
1260 const std::vector<float>& new_touchpad, 1264 const std::vector<float>& new_touchpad,
1261 const std::vector<float>& new_touchscreen) { 1265 const std::vector<float>& new_touchscreen) {
1262 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, 1266 webkit_platform_support_->SetFlingCurveParameters(new_touchpad,
1263 new_touchscreen); 1267 new_touchscreen);
1264 1268
1265 } 1269 }
1266 1270
1267 } // namespace content 1271 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698