| 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_loop.h" | 5 #include "content/browser/browser_main_loop.h" |
| 6 | 6 |
| 7 #include "base/bind.h" |
| 7 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 8 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 9 #include "base/logging.h" | 10 #include "base/logging.h" |
| 10 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 11 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
| 12 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
| 13 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
| 14 #include "content/browser/browser_thread_impl.h" | 15 #include "content/browser/browser_thread_impl.h" |
| 15 #include "content/browser/in_process_webkit/webkit_thread.h" | 16 #include "content/browser/in_process_webkit/webkit_thread.h" |
| 16 #include "content/browser/trace_controller.h" | 17 #include "content/browser/trace_controller.h" |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 MessageLoopForUI::current()->PostTask(FROM_HERE, parameters_.ui_task); | 560 MessageLoopForUI::current()->PostTask(FROM_HERE, parameters_.ui_task); |
| 560 | 561 |
| 561 #if defined(OS_MACOSX) | 562 #if defined(OS_MACOSX) |
| 562 MessageLoopForUI::current()->Run(); | 563 MessageLoopForUI::current()->Run(); |
| 563 #else | 564 #else |
| 564 MessageLoopForUI::current()->RunWithDispatcher(NULL); | 565 MessageLoopForUI::current()->RunWithDispatcher(NULL); |
| 565 #endif | 566 #endif |
| 566 } | 567 } |
| 567 | 568 |
| 568 } // namespace content | 569 } // namespace content |
| OLD | NEW |