devtools_server_util.h 902 B

123456789101112131415161718192021222324
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_UI_DEVTOOLS_VIEWS_DEVTOOLS_SERVER_UTIL_H_
  5. #define COMPONENTS_UI_DEVTOOLS_VIEWS_DEVTOOLS_SERVER_UTIL_H_
  6. #include <memory>
  7. #include "components/ui_devtools/connector_delegate.h"
  8. #include "components/ui_devtools/devtools_server.h"
  9. namespace ui_devtools {
  10. // A factory helper to construct a UiDevToolsServer for Views.
  11. // The connector is used in TracingAgent to hook up with the tracing service.
  12. std::unique_ptr<UiDevToolsServer> CreateUiDevToolsServerForViews(
  13. network::mojom::NetworkContext* network_context,
  14. std::unique_ptr<ConnectorDelegate> connector,
  15. const base::FilePath& active_port_output_directory);
  16. } // namespace ui_devtools
  17. #endif // COMPONENTS_UI_DEVTOOLS_VIEWS_DEVTOOLS_SERVER_UTIL_H_