| 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 "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "content/public/app/content_main.h" | 9 #include "content/public/app/content_main.h" |
| 10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| 11 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
| 12 #include "headless/lib/browser/headless_browser_context.h" | 12 #include "headless/lib/browser/headless_browser_context.h" |
| 13 #include "headless/lib/browser/headless_browser_main_parts.h" | 13 #include "headless/lib/browser/headless_browser_main_parts.h" |
| 14 #include "headless/lib/browser/headless_web_contents_impl.h" | 14 #include "headless/lib/browser/headless_web_contents_impl.h" |
| 15 #include "headless/lib/browser/headless_window_tree_client.h" | 15 #include "headless/lib/browser/headless_window_tree_client.h" |
| 16 #include "headless/lib/headless_content_main_delegate.h" | 16 #include "headless/lib/headless_content_main_delegate.h" |
| 17 #include "ui/aura/env.h" | 17 #include "ui/aura/env.h" |
| 18 #include "ui/aura/window_tree_host.h" | 18 #include "ui/aura/window_tree_host.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 DCHECK(!options.message_pump); | 127 DCHECK(!options.message_pump); |
| 128 | 128 |
| 129 headless::HeadlessContentMainDelegate delegate(std::move(browser)); | 129 headless::HeadlessContentMainDelegate delegate(std::move(browser)); |
| 130 content::ContentMainParams params(&delegate); | 130 content::ContentMainParams params(&delegate); |
| 131 params.argc = options.argc; | 131 params.argc = options.argc; |
| 132 params.argv = options.argv; | 132 params.argv = options.argv; |
| 133 return content::ContentMain(params); | 133 return content::ContentMain(params); |
| 134 } | 134 } |
| 135 | 135 |
| 136 } // namespace headless | 136 } // namespace headless |
| OLD | NEW |