OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <memory> | 5 #include <memory> |
6 #include <sstream> | 6 #include <sstream> |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
| 16 #include "base/memory/ptr_util.h" |
16 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
17 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
18 #include "base/numerics/safe_conversions.h" | 19 #include "base/numerics/safe_conversions.h" |
19 #include "base/strings/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
20 #include "content/public/common/content_switches.h" | 21 #include "content/public/common/content_switches.h" |
21 #include "headless/app/headless_shell_switches.h" | 22 #include "headless/app/headless_shell_switches.h" |
22 #include "headless/public/devtools/domains/emulation.h" | 23 #include "headless/public/devtools/domains/emulation.h" |
23 #include "headless/public/devtools/domains/inspector.h" | 24 #include "headless/public/devtools/domains/inspector.h" |
24 #include "headless/public/devtools/domains/page.h" | 25 #include "headless/public/devtools/domains/page.h" |
25 #include "headless/public/devtools/domains/runtime.h" | 26 #include "headless/public/devtools/domains/runtime.h" |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 } | 471 } |
471 builder.SetWindowSize(parsed_window_size); | 472 builder.SetWindowSize(parsed_window_size); |
472 } | 473 } |
473 | 474 |
474 return HeadlessBrowserMain( | 475 return HeadlessBrowserMain( |
475 builder.Build(), | 476 builder.Build(), |
476 base::Bind(&HeadlessShell::OnStart, base::Unretained(&shell))); | 477 base::Bind(&HeadlessShell::OnStart, base::Unretained(&shell))); |
477 } | 478 } |
478 | 479 |
479 } // namespace headless | 480 } // namespace headless |
OLD | NEW |