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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 #include <dbus/dbus-glib.h> | 70 #include <dbus/dbus-glib.h> |
71 #endif | 71 #endif |
72 | 72 |
73 #if defined(TOOLKIT_GTK) | 73 #if defined(TOOLKIT_GTK) |
74 #include "ui/gfx/gtk_util.h" | 74 #include "ui/gfx/gtk_util.h" |
75 #endif | 75 #endif |
76 | 76 |
77 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 77 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
78 #include <sys/stat.h> | 78 #include <sys/stat.h> |
79 #include "content/browser/renderer_host/render_sandbox_host_linux.h" | 79 #include "content/browser/renderer_host/render_sandbox_host_linux.h" |
80 #include "content/browser/zygote_host_impl_linux.h" | 80 #include "content/browser/zygote_host/zygote_host_impl_linux.h" |
81 #endif | 81 #endif |
82 | 82 |
83 #if defined(USE_X11) | 83 #if defined(USE_X11) |
84 #include <X11/Xlib.h> | 84 #include <X11/Xlib.h> |
85 #endif | 85 #endif |
86 | 86 |
87 // One of the linux specific headers defines this as a macro. | 87 // One of the linux specific headers defines this as a macro. |
88 #ifdef DestroyAll | 88 #ifdef DestroyAll |
89 #undef DestroyAll | 89 #undef DestroyAll |
90 #endif | 90 #endif |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); | 659 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); |
660 if (parameters_.ui_task) | 660 if (parameters_.ui_task) |
661 MessageLoopForUI::current()->PostTask(FROM_HERE, *parameters_.ui_task); | 661 MessageLoopForUI::current()->PostTask(FROM_HERE, *parameters_.ui_task); |
662 | 662 |
663 base::RunLoop run_loop; | 663 base::RunLoop run_loop; |
664 run_loop.Run(); | 664 run_loop.Run(); |
665 #endif | 665 #endif |
666 } | 666 } |
667 | 667 |
668 } // namespace content | 668 } // namespace content |
OLD | NEW |