| 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/browser/browser_main_loop.h" | 5 #include "content/browser/browser_main_loop.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 // On Windows, the FILE thread needs to have a UI message loop which | 1047 // On Windows, the FILE thread needs to have a UI message loop which |
| 1048 // pumps messages in such a way that Google Update can communicate back | 1048 // pumps messages in such a way that Google Update can communicate back |
| 1049 // to us. | 1049 // to us. |
| 1050 // TODO(robliao): Need to support COM in TaskScheduler before | 1050 // TODO(robliao): Need to support COM in TaskScheduler before |
| 1051 // redirecting the FILE thread on Windows. http://crbug.com/662122 | 1051 // redirecting the FILE thread on Windows. http://crbug.com/662122 |
| 1052 thread_to_start = &file_thread_; | 1052 thread_to_start = &file_thread_; |
| 1053 options = ui_message_loop_options; | 1053 options = ui_message_loop_options; |
| 1054 #else | 1054 #else |
| 1055 if (redirect_nonUInonIO_browser_threads) { | 1055 if (redirect_nonUInonIO_browser_threads) { |
| 1056 non_ui_non_io_task_runner_traits | 1056 non_ui_non_io_task_runner_traits |
| 1057 .WithPriority(base::TaskPriority::BACKGROUND) | 1057 .WithPriority(base::TaskPriority::USER_VISIBLE) |
| 1058 .WithShutdownBehavior(base::TaskShutdownBehavior::BLOCK_SHUTDOWN); | 1058 .WithShutdownBehavior(base::TaskShutdownBehavior::BLOCK_SHUTDOWN); |
| 1059 } else { | 1059 } else { |
| 1060 thread_to_start = &file_thread_; | 1060 thread_to_start = &file_thread_; |
| 1061 options = io_message_loop_options; | 1061 options = io_message_loop_options; |
| 1062 options.timer_slack = base::TIMER_SLACK_MAXIMUM; | 1062 options.timer_slack = base::TIMER_SLACK_MAXIMUM; |
| 1063 } | 1063 } |
| 1064 #endif | 1064 #endif |
| 1065 break; | 1065 break; |
| 1066 case BrowserThread::PROCESS_LAUNCHER: | 1066 case BrowserThread::PROCESS_LAUNCHER: |
| 1067 TRACE_EVENT_BEGIN1("startup", | 1067 TRACE_EVENT_BEGIN1("startup", |
| (...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1789 if (!audio_manager_) { | 1789 if (!audio_manager_) { |
| 1790 audio_thread_ = base::MakeUnique<AudioManagerThread>(); | 1790 audio_thread_ = base::MakeUnique<AudioManagerThread>(); |
| 1791 audio_manager_ = media::AudioManager::Create( | 1791 audio_manager_ = media::AudioManager::Create( |
| 1792 audio_thread_->task_runner(), audio_thread_->worker_task_runner(), | 1792 audio_thread_->task_runner(), audio_thread_->worker_task_runner(), |
| 1793 MediaInternals::GetInstance()); | 1793 MediaInternals::GetInstance()); |
| 1794 } | 1794 } |
| 1795 CHECK(audio_manager_); | 1795 CHECK(audio_manager_); |
| 1796 } | 1796 } |
| 1797 | 1797 |
| 1798 } // namespace content | 1798 } // namespace content |
| OLD | NEW |