| 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_devtools.h" | 5 #include "headless/lib/browser/headless_devtools.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "content/public/browser/devtools_agent_host.h" | 12 #include "content/public/browser/devtools_agent_host.h" |
| 13 #include "content/public/browser/devtools_frontend_host.h" | |
| 14 #include "content/public/browser/devtools_socket_factory.h" | 13 #include "content/public/browser/devtools_socket_factory.h" |
| 15 #include "content/public/browser/navigation_entry.h" | 14 #include "content/public/browser/navigation_entry.h" |
| 16 #include "headless/grit/headless_lib_resources.h" | 15 #include "headless/grit/headless_lib_resources.h" |
| 17 #include "headless/public/headless_browser.h" | 16 #include "headless/public/headless_browser.h" |
| 18 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
| 19 #include "net/log/net_log_source.h" | 18 #include "net/log/net_log_source.h" |
| 20 #include "net/socket/tcp_server_socket.h" | 19 #include "net/socket/tcp_server_socket.h" |
| 21 #include "ui/base/resource/resource_bundle.h" | 20 #include "ui/base/resource/resource_bundle.h" |
| 22 | 21 |
| 23 namespace headless { | 22 namespace headless { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 std::move(socket_factory), std::string(), | 63 std::move(socket_factory), std::string(), |
| 65 options->user_data_dir, // TODO(altimin): Figure a proper value for this. | 64 options->user_data_dir, // TODO(altimin): Figure a proper value for this. |
| 66 base::FilePath(), options->product_name_and_version, options->user_agent); | 65 base::FilePath(), options->product_name_and_version, options->user_agent); |
| 67 } | 66 } |
| 68 | 67 |
| 69 void StopLocalDevToolsHttpHandler() { | 68 void StopLocalDevToolsHttpHandler() { |
| 70 content::DevToolsAgentHost::StopRemoteDebuggingServer(); | 69 content::DevToolsAgentHost::StopRemoteDebuggingServer(); |
| 71 } | 70 } |
| 72 | 71 |
| 73 } // namespace headless | 72 } // namespace headless |
| OLD | NEW |