OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ios/web/app/web_main_loop.h" | 5 #include "ios/web/app/web_main_loop.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #include "base/power_monitor/power_monitor.h" | 17 #include "base/power_monitor/power_monitor.h" |
18 #include "base/power_monitor/power_monitor_device_source.h" | 18 #include "base/power_monitor/power_monitor_device_source.h" |
19 #include "base/process/process_metrics.h" | 19 #include "base/process/process_metrics.h" |
20 #include "base/system_monitor/system_monitor.h" | 20 #include "base/system_monitor/system_monitor.h" |
21 #include "base/task_scheduler/initialization_util.h" | 21 #include "base/task_scheduler/initialization_util.h" |
22 #include "base/task_scheduler/scheduler_worker_pool_params.h" | 22 #include "base/task_scheduler/scheduler_worker_pool_params.h" |
23 #include "base/task_scheduler/task_scheduler.h" | 23 #include "base/task_scheduler/task_scheduler.h" |
24 #include "base/task_scheduler/task_traits.h" | 24 #include "base/task_scheduler/task_traits.h" |
25 #include "base/threading/thread_restrictions.h" | 25 #include "base/threading/thread_restrictions.h" |
26 #include "ios/web/net/cookie_notification_bridge.h" | 26 #import "ios/web/net/cookie_notification_bridge.h" |
27 #include "ios/web/public/app/web_main_parts.h" | 27 #include "ios/web/public/app/web_main_parts.h" |
28 #include "ios/web/public/web_client.h" | 28 #import "ios/web/public/web_client.h" |
29 #include "ios/web/web_thread_impl.h" | 29 #include "ios/web/web_thread_impl.h" |
30 #include "ios/web/webui/url_data_manager_ios.h" | 30 #include "ios/web/webui/url_data_manager_ios.h" |
31 #include "net/base/network_change_notifier.h" | 31 #include "net/base/network_change_notifier.h" |
32 | 32 |
33 #if !defined(__has_feature) || !__has_feature(objc_arc) | 33 #if !defined(__has_feature) || !__has_feature(objc_arc) |
34 #error "This file requires ARC support." | 34 #error "This file requires ARC support." |
35 #endif | 35 #endif |
36 | 36 |
37 namespace web { | 37 namespace web { |
38 | 38 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 main_thread_.reset( | 336 main_thread_.reset( |
337 new WebThreadImpl(WebThread::UI, base::MessageLoop::current())); | 337 new WebThreadImpl(WebThread::UI, base::MessageLoop::current())); |
338 } | 338 } |
339 | 339 |
340 int WebMainLoop::WebThreadsStarted() { | 340 int WebMainLoop::WebThreadsStarted() { |
341 cookie_notification_bridge_.reset(new CookieNotificationBridge); | 341 cookie_notification_bridge_.reset(new CookieNotificationBridge); |
342 return result_code_; | 342 return result_code_; |
343 } | 343 } |
344 | 344 |
345 } // namespace web | 345 } // namespace web |
OLD | NEW |