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 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 &input_params, &output_params)); | 1016 &input_params, &output_params)); |
1017 | 1017 |
1018 audio_hardware_config_.reset(new media::AudioHardwareConfig( | 1018 audio_hardware_config_.reset(new media::AudioHardwareConfig( |
1019 input_params, output_params)); | 1019 input_params, output_params)); |
1020 audio_message_filter_->SetAudioHardwareConfig(audio_hardware_config_.get()); | 1020 audio_message_filter_->SetAudioHardwareConfig(audio_hardware_config_.get()); |
1021 } | 1021 } |
1022 | 1022 |
1023 return audio_hardware_config_.get(); | 1023 return audio_hardware_config_.get(); |
1024 } | 1024 } |
1025 | 1025 |
| 1026 base::WaitableEvent* RenderThreadImpl::GetShutdownEvent() { |
| 1027 return ChildProcess::current()->GetShutDownEvent(); |
| 1028 } |
| 1029 |
1026 #if defined(OS_WIN) | 1030 #if defined(OS_WIN) |
1027 void RenderThreadImpl::PreCacheFontCharacters(const LOGFONT& log_font, | 1031 void RenderThreadImpl::PreCacheFontCharacters(const LOGFONT& log_font, |
1028 const base::string16& str) { | 1032 const base::string16& str) { |
1029 Send(new ViewHostMsg_PreCacheFontCharacters(log_font, str)); | 1033 Send(new ViewHostMsg_PreCacheFontCharacters(log_font, str)); |
1030 } | 1034 } |
1031 | 1035 |
1032 void RenderThreadImpl::PreCacheFont(const LOGFONT& log_font) { | 1036 void RenderThreadImpl::PreCacheFont(const LOGFONT& log_font) { |
1033 Send(new ChildProcessHostMsg_PreCacheFont(log_font)); | 1037 Send(new ChildProcessHostMsg_PreCacheFont(log_font)); |
1034 } | 1038 } |
1035 | 1039 |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 hidden_widget_count_--; | 1418 hidden_widget_count_--; |
1415 | 1419 |
1416 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1420 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1417 return; | 1421 return; |
1418 } | 1422 } |
1419 | 1423 |
1420 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1424 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1421 } | 1425 } |
1422 | 1426 |
1423 } // namespace content | 1427 } // namespace content |
OLD | NEW |