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 "base/bind.h" | 7 #include "base/bind.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/hi_res_timer_manager.h" | 10 #include "base/hi_res_timer_manager.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // TODO(epenner): Move thread priorities to base. (crbug.com/170549) | 61 // TODO(epenner): Move thread priorities to base. (crbug.com/170549) |
62 #include <sys/resource.h> | 62 #include <sys/resource.h> |
63 #endif | 63 #endif |
64 | 64 |
65 #if defined(OS_WIN) | 65 #if defined(OS_WIN) |
66 #include <windows.h> | 66 #include <windows.h> |
67 #include <commctrl.h> | 67 #include <commctrl.h> |
68 #include <shellapi.h> | 68 #include <shellapi.h> |
69 | 69 |
70 #include "content/browser/system_message_window_win.h" | 70 #include "content/browser/system_message_window_win.h" |
71 #include "content/common/sandbox_policy.h" | 71 #include "content/common/sandbox_win.h" |
72 #include "net/base/winsock_init.h" | 72 #include "net/base/winsock_init.h" |
73 #include "ui/base/l10n/l10n_util_win.h" | 73 #include "ui/base/l10n/l10n_util_win.h" |
74 #endif | 74 #endif |
75 | 75 |
76 #if defined(OS_LINUX) || defined(OS_OPENBSD) | 76 #if defined(OS_LINUX) || defined(OS_OPENBSD) |
77 #include <glib-object.h> | 77 #include <glib-object.h> |
78 #endif | 78 #endif |
79 | 79 |
80 #if defined(OS_LINUX) | 80 #if defined(OS_LINUX) |
81 #include "content/browser/device_monitor_linux.h" | 81 #include "content/browser/device_monitor_linux.h" |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); | 812 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); |
813 if (parameters_.ui_task) | 813 if (parameters_.ui_task) |
814 MessageLoopForUI::current()->PostTask(FROM_HERE, *parameters_.ui_task); | 814 MessageLoopForUI::current()->PostTask(FROM_HERE, *parameters_.ui_task); |
815 | 815 |
816 base::RunLoop run_loop; | 816 base::RunLoop run_loop; |
817 run_loop.Run(); | 817 run_loop.Run(); |
818 #endif | 818 #endif |
819 } | 819 } |
820 | 820 |
821 } // namespace content | 821 } // namespace content |
OLD | NEW |