OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 5 #include "content/browser/browser_main.h" |
6 | 6 |
7 #include "base/allocator/allocator_shim.h" | 7 #include "base/allocator/allocator_shim.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/metrics/field_trial.h" | 11 #include "base/metrics/field_trial.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/system_monitor/system_monitor.h" | 13 #include "base/system_monitor/system_monitor.h" |
14 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
15 #include "content/browser/browser_thread.h" | 15 #include "content/browser/browser_thread.h" |
16 #include "content/browser/content_browser_client.h" | 16 #include "content/browser/content_browser_client.h" |
17 #include "content/common/content_switches.h" | |
18 #include "content/common/hi_res_timer_manager.h" | 17 #include "content/common/hi_res_timer_manager.h" |
19 #include "content/common/main_function_params.h" | 18 #include "content/common/main_function_params.h" |
20 #include "content/common/notification_service.h" | 19 #include "content/common/notification_service.h" |
21 #include "content/common/result_codes.h" | 20 #include "content/common/result_codes.h" |
22 #include "content/common/sandbox_policy.h" | 21 #include "content/common/sandbox_policy.h" |
| 22 #include "content/public/common/content_switches.h" |
23 #include "crypto/nss_util.h" | 23 #include "crypto/nss_util.h" |
24 #include "net/base/network_change_notifier.h" | 24 #include "net/base/network_change_notifier.h" |
25 #include "net/base/ssl_config_service.h" | 25 #include "net/base/ssl_config_service.h" |
26 #include "net/socket/client_socket_factory.h" | 26 #include "net/socket/client_socket_factory.h" |
27 #include "net/socket/tcp_client_socket.h" | 27 #include "net/socket/tcp_client_socket.h" |
28 | 28 |
29 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
30 #include <windows.h> | 30 #include <windows.h> |
31 #include <commctrl.h> | 31 #include <commctrl.h> |
32 #include <ole2.h> | 32 #include <ole2.h> |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 base::win::ScopedCOMInitializer com_initializer; | 428 base::win::ScopedCOMInitializer com_initializer; |
429 #endif // OS_WIN | 429 #endif // OS_WIN |
430 | 430 |
431 base::StatisticsRecorder statistics; | 431 base::StatisticsRecorder statistics; |
432 | 432 |
433 parts->RunMainMessageLoopParts(); | 433 parts->RunMainMessageLoopParts(); |
434 | 434 |
435 TRACE_EVENT_END_ETW("BrowserMain", 0, 0); | 435 TRACE_EVENT_END_ETW("BrowserMain", 0, 0); |
436 return parts->result_code(); | 436 return parts->result_code(); |
437 } | 437 } |
OLD | NEW |