| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 #include "content/public/browser/content_browser_client.h" | 76 #include "content/public/browser/content_browser_client.h" |
| 77 #include "content/public/browser/gpu_data_manager_observer.h" | 77 #include "content/public/browser/gpu_data_manager_observer.h" |
| 78 #include "content/public/browser/render_process_host.h" | 78 #include "content/public/browser/render_process_host.h" |
| 79 #include "content/public/browser/tracing_controller.h" | 79 #include "content/public/browser/tracing_controller.h" |
| 80 #include "content/public/common/content_client.h" | 80 #include "content/public/common/content_client.h" |
| 81 #include "content/public/common/content_features.h" | 81 #include "content/public/common/content_features.h" |
| 82 #include "content/public/common/content_switches.h" | 82 #include "content/public/common/content_switches.h" |
| 83 #include "content/public/common/main_function_params.h" | 83 #include "content/public/common/main_function_params.h" |
| 84 #include "content/public/common/result_codes.h" | 84 #include "content/public/common/result_codes.h" |
| 85 #include "device/battery/battery_status_service.h" | 85 #include "device/battery/battery_status_service.h" |
| 86 #include "device/time_zone_monitor/time_zone_monitor.h" | |
| 87 #include "media/base/media.h" | 86 #include "media/base/media.h" |
| 88 #include "media/base/user_input_monitor.h" | 87 #include "media/base/user_input_monitor.h" |
| 89 #include "media/midi/midi_manager.h" | 88 #include "media/midi/midi_manager.h" |
| 90 #include "mojo/edk/embedder/embedder.h" | 89 #include "mojo/edk/embedder/embedder.h" |
| 91 #include "mojo/edk/embedder/scoped_ipc_support.h" | 90 #include "mojo/edk/embedder/scoped_ipc_support.h" |
| 92 #include "net/base/network_change_notifier.h" | 91 #include "net/base/network_change_notifier.h" |
| 93 #include "net/socket/client_socket_factory.h" | 92 #include "net/socket/client_socket_factory.h" |
| 94 #include "net/ssl/ssl_config_service.h" | 93 #include "net/ssl/ssl_config_service.h" |
| 95 #include "ppapi/features/features.h" | 94 #include "ppapi/features/features.h" |
| 96 #include "services/service_manager/runner/common/client_util.h" | 95 #include "services/service_manager/runner/common/client_util.h" |
| (...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1336 { | 1335 { |
| 1337 TRACE_EVENT0( | 1336 TRACE_EVENT0( |
| 1338 "startup", | 1337 "startup", |
| 1339 "BrowserMainLoop::BrowserThreadsStarted::InitUserInputMonitor"); | 1338 "BrowserMainLoop::BrowserThreadsStarted::InitUserInputMonitor"); |
| 1340 user_input_monitor_ = media::UserInputMonitor::Create( | 1339 user_input_monitor_ = media::UserInputMonitor::Create( |
| 1341 io_thread_->task_runner(), main_thread_->task_runner()); | 1340 io_thread_->task_runner(), main_thread_->task_runner()); |
| 1342 } | 1341 } |
| 1343 | 1342 |
| 1344 { | 1343 { |
| 1345 TRACE_EVENT0("startup", | 1344 TRACE_EVENT0("startup", |
| 1346 "BrowserMainLoop::BrowserThreadsStarted::TimeZoneMonitor"); | |
| 1347 time_zone_monitor_ = | |
| 1348 device::TimeZoneMonitor::Create(file_thread_->task_runner()); | |
| 1349 } | |
| 1350 | |
| 1351 { | |
| 1352 TRACE_EVENT0("startup", | |
| 1353 "BrowserMainLoop::BrowserThreadsStarted::SaveFileManager"); | 1345 "BrowserMainLoop::BrowserThreadsStarted::SaveFileManager"); |
| 1354 save_file_manager_ = new SaveFileManager(); | 1346 save_file_manager_ = new SaveFileManager(); |
| 1355 } | 1347 } |
| 1356 | 1348 |
| 1357 // Alert the clipboard class to which threads are allowed to access the | 1349 // Alert the clipboard class to which threads are allowed to access the |
| 1358 // clipboard: | 1350 // clipboard: |
| 1359 std::vector<base::PlatformThreadId> allowed_clipboard_threads; | 1351 std::vector<base::PlatformThreadId> allowed_clipboard_threads; |
| 1360 // The current thread is the UI thread. | 1352 // The current thread is the UI thread. |
| 1361 allowed_clipboard_threads.push_back(base::PlatformThread::CurrentId()); | 1353 allowed_clipboard_threads.push_back(base::PlatformThread::CurrentId()); |
| 1362 #if defined(OS_WIN) | 1354 #if defined(OS_WIN) |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1606 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner = | 1598 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner = |
| 1607 audio_thread_->task_runner(); | 1599 audio_thread_->task_runner(); |
| 1608 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner), | 1600 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner), |
| 1609 std::move(worker_task_runner), | 1601 std::move(worker_task_runner), |
| 1610 MediaInternals::GetInstance()); | 1602 MediaInternals::GetInstance()); |
| 1611 } | 1603 } |
| 1612 CHECK(audio_manager_); | 1604 CHECK(audio_manager_); |
| 1613 } | 1605 } |
| 1614 | 1606 |
| 1615 } // namespace content | 1607 } // namespace content |
| OLD | NEW |