| 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/public/browser/browser_main_runner.h" | 5 #include "content/public/browser/browser_main_runner.h" |
| 6 | 6 |
| 7 #include "base/allocator/allocator_shim.h" | 7 #include "base/allocator/allocator_shim.h" |
| 8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "ui/base/ime/win/tsf_bridge.h" | 23 #include "ui/base/ime/win/tsf_bridge.h" |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 #if defined(OS_ANDROID) | 26 #if defined(OS_ANDROID) |
| 27 #include "content/browser/android/surface_texture_peer_browser_impl.h" | 27 #include "content/browser/android/surface_texture_peer_browser_impl.h" |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 bool g_exited_main_message_loop = false; | 30 bool g_exited_main_message_loop = false; |
| 31 | 31 |
| 32 using content::ChildProcess; | 32 using content::ChildProcess; |
| 33 using content::NotificationServiceImpl; |
| 33 | 34 |
| 34 namespace { | 35 namespace { |
| 35 | 36 |
| 36 class BrowserMainRunnerImpl : public content::BrowserMainRunner { | 37 class BrowserMainRunnerImpl : public content::BrowserMainRunner { |
| 37 public: | 38 public: |
| 38 BrowserMainRunnerImpl() | 39 BrowserMainRunnerImpl() |
| 39 : is_initialized_(false), | 40 : is_initialized_(false), |
| 40 is_shutdown_(false), | 41 is_shutdown_(false), |
| 41 created_threads_(false) { | 42 created_threads_(false) { |
| 42 } | 43 } |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 } // namespace | 165 } // namespace |
| 165 | 166 |
| 166 namespace content { | 167 namespace content { |
| 167 | 168 |
| 168 // static | 169 // static |
| 169 BrowserMainRunner* BrowserMainRunner::Create() { | 170 BrowserMainRunner* BrowserMainRunner::Create() { |
| 170 return new BrowserMainRunnerImpl(); | 171 return new BrowserMainRunnerImpl(); |
| 171 } | 172 } |
| 172 | 173 |
| 173 } // namespace content | 174 } // namespace content |
| OLD | NEW |