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

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: For now disable sending data - fix IPC thread in renderer 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 vc_manager_ = new VideoCaptureImplManager(); 360 vc_manager_ = new VideoCaptureImplManager();
360 AddFilter(vc_manager_->video_capture_message_filter()); 361 AddFilter(vc_manager_->video_capture_message_filter());
361 362
362 audio_input_message_filter_ = 363 audio_input_message_filter_ =
363 new AudioInputMessageFilter(GetIOMessageLoopProxy()); 364 new AudioInputMessageFilter(GetIOMessageLoopProxy());
364 AddFilter(audio_input_message_filter_.get()); 365 AddFilter(audio_input_message_filter_.get());
365 366
366 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy()); 367 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy());
367 AddFilter(audio_message_filter_.get()); 368 AddFilter(audio_message_filter_.get());
368 369
370 midi_message_filter_ = new MIDIMessageFilter(GetIOMessageLoopProxy());
371 AddFilter(midi_message_filter_.get());
372
369 AddFilter(new IndexedDBMessageFilter); 373 AddFilter(new IndexedDBMessageFilter);
370 374
371 GetContentClient()->renderer()->RenderThreadStarted(); 375 GetContentClient()->renderer()->RenderThreadStarted();
372 376
373 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 377 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
374 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking)) 378 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking))
375 RegisterExtension(GpuBenchmarkingExtension::Get()); 379 RegisterExtension(GpuBenchmarkingExtension::Get());
376 380
377 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 381 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
378 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) 382 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking))
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 1249
1246 void RenderThreadImpl::SetFlingCurveParameters( 1250 void RenderThreadImpl::SetFlingCurveParameters(
1247 const std::vector<float>& new_touchpad, 1251 const std::vector<float>& new_touchpad,
1248 const std::vector<float>& new_touchscreen) { 1252 const std::vector<float>& new_touchscreen) {
1249 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, 1253 webkit_platform_support_->SetFlingCurveParameters(new_touchpad,
1250 new_touchscreen); 1254 new_touchscreen);
1251 1255
1252 } 1256 }
1253 1257
1254 } // namespace content 1258 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698