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 12 matching lines...) Expand all Loading... |
23 #include "content/browser/gpu/gpu_process_host.h" | 23 #include "content/browser/gpu/gpu_process_host.h" |
24 #include "content/browser/gpu/gpu_process_host_ui_shim.h" | 24 #include "content/browser/gpu/gpu_process_host_ui_shim.h" |
25 #include "content/browser/histogram_synchronizer.h" | 25 #include "content/browser/histogram_synchronizer.h" |
26 #include "content/browser/in_process_webkit/webkit_thread.h" | 26 #include "content/browser/in_process_webkit/webkit_thread.h" |
27 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 27 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
28 #include "content/browser/net/browser_online_state_observer.h" | 28 #include "content/browser/net/browser_online_state_observer.h" |
29 #include "content/browser/plugin_service_impl.h" | 29 #include "content/browser/plugin_service_impl.h" |
30 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" | 30 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" |
31 #include "content/browser/renderer_host/media/media_stream_manager.h" | 31 #include "content/browser/renderer_host/media/media_stream_manager.h" |
32 #include "content/browser/speech/speech_recognition_manager_impl.h" | 32 #include "content/browser/speech/speech_recognition_manager_impl.h" |
33 #include "content/browser/trace_controller_impl.h" | 33 #include "content/browser/tracing/trace_controller_impl.h" |
34 #include "content/browser/webui/content_web_ui_controller_factory.h" | 34 #include "content/browser/webui/content_web_ui_controller_factory.h" |
35 #include "content/browser/webui/url_data_manager.h" | 35 #include "content/browser/webui/url_data_manager.h" |
36 #include "content/public/browser/browser_main_parts.h" | 36 #include "content/public/browser/browser_main_parts.h" |
37 #include "content/public/browser/browser_shutdown.h" | 37 #include "content/public/browser/browser_shutdown.h" |
38 #include "content/public/browser/compositor_util.h" | 38 #include "content/public/browser/compositor_util.h" |
39 #include "content/public/browser/content_browser_client.h" | 39 #include "content/public/browser/content_browser_client.h" |
40 #include "content/public/browser/render_process_host.h" | 40 #include "content/public/browser/render_process_host.h" |
41 #include "content/public/common/content_switches.h" | 41 #include "content/public/common/content_switches.h" |
42 #include "content/public/common/main_function_params.h" | 42 #include "content/public/common/main_function_params.h" |
43 #include "content/public/common/result_codes.h" | 43 #include "content/public/common/result_codes.h" |
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); | 803 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); |
804 if (parameters_.ui_task) | 804 if (parameters_.ui_task) |
805 MessageLoopForUI::current()->PostTask(FROM_HERE, *parameters_.ui_task); | 805 MessageLoopForUI::current()->PostTask(FROM_HERE, *parameters_.ui_task); |
806 | 806 |
807 base::RunLoop run_loop; | 807 base::RunLoop run_loop; |
808 run_loop.Run(); | 808 run_loop.Run(); |
809 #endif | 809 #endif |
810 } | 810 } |
811 | 811 |
812 } // namespace content | 812 } // namespace content |
OLD | NEW |