| 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 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_H_ | 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_H_ |
| 6 #define HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_H_ | 6 #define HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "headless/public/headless_browser.h" | 10 #include "headless/public/headless_browser.h" |
| 11 | 11 |
| 12 namespace devtools_http_handler { | |
| 13 class DevToolsHttpHandler; | |
| 14 } | |
| 15 | |
| 16 namespace headless { | 12 namespace headless { |
| 17 | 13 |
| 18 // Starts a DevTools HTTP handler on the loopback interface on the port | 14 // Starts a DevTools HTTP handler on the loopback interface on the port |
| 19 // configured by HeadlessBrowser::Options. | 15 // configured by HeadlessBrowser::Options. |
| 20 std::unique_ptr<devtools_http_handler::DevToolsHttpHandler> | 16 void StartLocalDevToolsHttpHandler(HeadlessBrowser::Options* options); |
| 21 CreateLocalDevToolsHttpHandler(HeadlessBrowser::Options* options); | 17 void StopLocalDevToolsHttpHandler(); |
| 22 | 18 |
| 23 } // namespace headless | 19 } // namespace headless |
| 24 | 20 |
| 25 #endif // HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_H_ | 21 #endif // HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_H_ |
| OLD | NEW |