OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "headless/lib/browser/headless_browser_impl.h" | 5 #include "headless/lib/browser/headless_browser_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/message_loop/message_loop.h" |
13 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
14 #include "content/public/app/content_main.h" | 15 #include "content/public/app/content_main.h" |
15 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/devtools_agent_host.h" | 17 #include "content/public/browser/devtools_agent_host.h" |
17 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
18 #include "content/public/common/content_switches.h" | 19 #include "content/public/common/content_switches.h" |
19 #include "headless/app/headless_shell_switches.h" | 20 #include "headless/app/headless_shell_switches.h" |
20 #include "headless/lib/browser/headless_browser_context_impl.h" | 21 #include "headless/lib/browser/headless_browser_context_impl.h" |
21 #include "headless/lib/browser/headless_browser_main_parts.h" | 22 #include "headless/lib/browser/headless_browser_main_parts.h" |
22 #include "headless/lib/browser/headless_devtools_client_impl.h" | 23 #include "headless/lib/browser/headless_devtools_client_impl.h" |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 | 269 |
269 // Child processes should not end up here. | 270 // Child processes should not end up here. |
270 DCHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch( | 271 DCHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch( |
271 ::switches::kProcessType)); | 272 ::switches::kProcessType)); |
272 #endif | 273 #endif |
273 return RunContentMain(std::move(options), | 274 return RunContentMain(std::move(options), |
274 std::move(on_browser_start_callback)); | 275 std::move(on_browser_start_callback)); |
275 } | 276 } |
276 | 277 |
277 } // namespace headless | 278 } // namespace headless |
OLD | NEW |