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 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 task_scheduler_init_params = GetDefaultTaskSchedulerInitParams(); | 951 task_scheduler_init_params = GetDefaultTaskSchedulerInitParams(); |
952 DCHECK(task_scheduler_init_params); | 952 DCHECK(task_scheduler_init_params); |
953 base::TaskScheduler::GetInstance()->Start( | 953 base::TaskScheduler::GetInstance()->Start( |
954 *task_scheduler_init_params.get()); | 954 *task_scheduler_init_params.get()); |
955 } | 955 } |
956 | 956 |
957 GetContentClient()->browser()->PerformExperimentalTaskSchedulerRedirections(); | 957 GetContentClient()->browser()->PerformExperimentalTaskSchedulerRedirections(); |
958 | 958 |
959 base::Thread::Options io_message_loop_options; | 959 base::Thread::Options io_message_loop_options; |
960 io_message_loop_options.message_loop_type = base::MessageLoop::TYPE_IO; | 960 io_message_loop_options.message_loop_type = base::MessageLoop::TYPE_IO; |
961 base::Thread::Options ui_message_loop_options; | |
962 ui_message_loop_options.message_loop_type = base::MessageLoop::TYPE_UI; | |
963 | 961 |
964 const bool redirect_nonUInonIO_browser_threads = | 962 const bool redirect_nonUInonIO_browser_threads = |
965 GetContentClient() | 963 GetContentClient() |
966 ->browser() | 964 ->browser() |
967 ->RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 965 ->RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
968 | 966 |
969 // Start threads in the order they occur in the BrowserThread::ID enumeration, | 967 // Start threads in the order they occur in the BrowserThread::ID enumeration, |
970 // except for BrowserThread::UI which is the main thread. | 968 // except for BrowserThread::UI which is the main thread. |
971 // | 969 // |
972 // Must be size_t so we can increment it. | 970 // Must be size_t so we can increment it. |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1770 base::MakeUnique<media::AudioThreadImpl>(), | 1768 base::MakeUnique<media::AudioThreadImpl>(), |
1771 MediaInternals::GetInstance()); | 1769 MediaInternals::GetInstance()); |
1772 } | 1770 } |
1773 CHECK(audio_manager_); | 1771 CHECK(audio_manager_); |
1774 | 1772 |
1775 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get()); | 1773 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get()); |
1776 CHECK(audio_system_); | 1774 CHECK(audio_system_); |
1777 } | 1775 } |
1778 | 1776 |
1779 } // namespace content | 1777 } // namespace content |
OLD | NEW |