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

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

Issue 151343002: Web MIDI: make naming convention be consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review boliu #2 Created 6 years, 10 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
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/renderer/render_view_impl.h » ('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/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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 AddObserver(media_stream_factory_.get()); 364 AddObserver(media_stream_factory_.get());
365 #endif // defined(ENABLE_WEBRTC) 365 #endif // defined(ENABLE_WEBRTC)
366 366
367 audio_input_message_filter_ = 367 audio_input_message_filter_ =
368 new AudioInputMessageFilter(GetIOMessageLoopProxy()); 368 new AudioInputMessageFilter(GetIOMessageLoopProxy());
369 AddFilter(audio_input_message_filter_.get()); 369 AddFilter(audio_input_message_filter_.get());
370 370
371 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy()); 371 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy());
372 AddFilter(audio_message_filter_.get()); 372 AddFilter(audio_message_filter_.get());
373 373
374 midi_message_filter_ = new MIDIMessageFilter(GetIOMessageLoopProxy()); 374 midi_message_filter_ = new MidiMessageFilter(GetIOMessageLoopProxy());
375 AddFilter(midi_message_filter_.get()); 375 AddFilter(midi_message_filter_.get());
376 376
377 AddFilter((new IndexedDBMessageFilter(thread_safe_sender()))->GetFilter()); 377 AddFilter((new IndexedDBMessageFilter(thread_safe_sender()))->GetFilter());
378 378
379 AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter()); 379 AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter());
380 380
381 GetContentClient()->renderer()->RenderThreadStarted(); 381 GetContentClient()->renderer()->RenderThreadStarted();
382 382
383 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 383 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
384 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking)) 384 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking))
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 hidden_widget_count_--; 1408 hidden_widget_count_--;
1409 1409
1410 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1410 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1411 return; 1411 return;
1412 } 1412 }
1413 1413
1414 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1414 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1415 } 1415 }
1416 1416
1417 } // namespace content 1417 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698