OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |