| 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 <iostream> | 5 #include <iostream> |
| 6 #include <memory> | 6 #include <memory> |
| 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/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/numerics/safe_conversions.h" | 17 #include "base/numerics/safe_conversions.h" |
| 18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
| 19 #include "content/public/common/content_switches.h" | 19 #include "content/public/common/content_switches.h" |
| 20 #include "headless/app/headless_shell_switches.h" | 20 #include "headless/app/headless_shell_switches.h" |
| 21 #include "headless/public/domains/emulation.h" | 21 #include "headless/public/devtools/domains/emulation.h" |
| 22 #include "headless/public/domains/page.h" | 22 #include "headless/public/devtools/domains/page.h" |
| 23 #include "headless/public/domains/runtime.h" | 23 #include "headless/public/devtools/domains/runtime.h" |
| 24 #include "headless/public/headless_browser.h" | 24 #include "headless/public/headless_browser.h" |
| 25 #include "headless/public/headless_devtools_client.h" | 25 #include "headless/public/headless_devtools_client.h" |
| 26 #include "headless/public/headless_devtools_target.h" | 26 #include "headless/public/headless_devtools_target.h" |
| 27 #include "headless/public/headless_web_contents.h" | 27 #include "headless/public/headless_web_contents.h" |
| 28 #include "headless/public/util/deterministic_dispatcher.h" | 28 #include "headless/public/util/deterministic_dispatcher.h" |
| 29 #include "headless/public/util/deterministic_http_protocol_handler.h" | 29 #include "headless/public/util/deterministic_http_protocol_handler.h" |
| 30 #include "net/base/file_stream.h" | 30 #include "net/base/file_stream.h" |
| 31 #include "net/base/io_buffer.h" | 31 #include "net/base/io_buffer.h" |
| 32 #include "net/base/ip_address.h" | 32 #include "net/base/ip_address.h" |
| 33 #include "net/base/net_errors.h" | 33 #include "net/base/net_errors.h" |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 } | 429 } |
| 430 builder.SetWindowSize(parsed_window_size); | 430 builder.SetWindowSize(parsed_window_size); |
| 431 } | 431 } |
| 432 | 432 |
| 433 return HeadlessBrowserMain( | 433 return HeadlessBrowserMain( |
| 434 builder.Build(), | 434 builder.Build(), |
| 435 base::Bind(&HeadlessShell::OnStart, base::Unretained(&shell))); | 435 base::Bind(&HeadlessShell::OnStart, base::Unretained(&shell))); |
| 436 } | 436 } |
| 437 | 437 |
| 438 } // namespace headless | 438 } // namespace headless |
| OLD | NEW |