OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #if defined(OS_MACOSX) | 5 #if defined(OS_MACOSX) |
6 #include <signal.h> | 6 #include <signal.h> |
7 #include <unistd.h> | 7 #include <unistd.h> |
8 #endif // OS_MACOSX | 8 #endif // OS_MACOSX |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
13 #include "base/mac/scoped_nsautorelease_pool.h" | 13 #include "base/mac/scoped_nsautorelease_pool.h" |
14 #include "base/metrics/field_trial.h" | 14 #include "base/metrics/field_trial.h" |
15 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
17 #include "base/metrics/stats_counters.h" | 17 #include "base/metrics/stats_counters.h" |
18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
19 #include "base/process_util.h" | 19 #include "base/process_util.h" |
20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
21 #include "base/threading/platform_thread.h" | 21 #include "base/threading/platform_thread.h" |
22 #include "chrome/common/chrome_constants.h" | 22 #include "chrome/common/chrome_constants.h" |
23 #include "chrome/common/chrome_counters.h" | 23 #include "chrome/common/chrome_counters.h" |
24 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
25 #include "chrome/common/gfx_resource_provider.h" | 25 #include "chrome/common/gfx_resource_provider.h" |
26 #include "chrome/common/hi_res_timer_manager.h" | |
27 #include "chrome/common/logging_chrome.h" | 26 #include "chrome/common/logging_chrome.h" |
28 #include "chrome/common/net/net_resource_provider.h" | 27 #include "chrome/common/net/net_resource_provider.h" |
29 #include "chrome/common/pepper_plugin_registry.h" | 28 #include "chrome/common/pepper_plugin_registry.h" |
30 #include "chrome/renderer/renderer_main_platform_delegate.h" | 29 #include "chrome/renderer/renderer_main_platform_delegate.h" |
31 #include "chrome/renderer/render_process_impl.h" | 30 #include "chrome/renderer/render_process_impl.h" |
32 #include "chrome/renderer/render_thread.h" | 31 #include "chrome/renderer/render_thread.h" |
33 #include "content/common/main_function_params.h" | 32 #include "content/common/main_function_params.h" |
| 33 #include "content/common/hi_res_timer_manager.h" |
34 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
35 #include "net/base/net_module.h" | 35 #include "net/base/net_module.h" |
36 #include "ui/base/system_monitor/system_monitor.h" | 36 #include "ui/base/system_monitor/system_monitor.h" |
37 #include "ui/base/ui_base_switches.h" | 37 #include "ui/base/ui_base_switches.h" |
38 #include "ui/gfx/gfx_module.h" | 38 #include "ui/gfx/gfx_module.h" |
39 | 39 |
40 #if defined(OS_MACOSX) | 40 #if defined(OS_MACOSX) |
41 #include "base/eintr_wrapper.h" | 41 #include "base/eintr_wrapper.h" |
42 #include "chrome/app/breakpad_mac.h" | 42 #include "chrome/app/breakpad_mac.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 pool->Recycle(); | 303 pool->Recycle(); |
304 TRACE_EVENT_BEGIN("RendererMain.START_MSG_LOOP", 0, 0); | 304 TRACE_EVENT_BEGIN("RendererMain.START_MSG_LOOP", 0, 0); |
305 MessageLoop::current()->Run(); | 305 MessageLoop::current()->Run(); |
306 TRACE_EVENT_END("RendererMain.START_MSG_LOOP", 0, 0); | 306 TRACE_EVENT_END("RendererMain.START_MSG_LOOP", 0, 0); |
307 } | 307 } |
308 } | 308 } |
309 platform.PlatformUninitialize(); | 309 platform.PlatformUninitialize(); |
310 TRACE_EVENT_END("RendererMain", 0, ""); | 310 TRACE_EVENT_END("RendererMain", 0, ""); |
311 return 0; | 311 return 0; |
312 } | 312 } |
OLD | NEW |