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