1 // Copyright 2022 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef FUCHSIA_WEB_SHELL_REMOTE_DEBUGGING_PORT_H_
6 #define FUCHSIA_WEB_SHELL_REMOTE_DEBUGGING_PORT_H_
8 #include "third_party/abseil-cpp/absl/types/optional.h"
10 extern const char kRemoteDebuggingPortSwitch[];
18 // Return default value of 0 if |command_line| does not have remote debugging
19 // port switch. If |command_line| contains the appropriate switch, returns the
20 // remote debugging port specified in the |command_line| or nullopt on parsing
22 absl::optional<uint16_t> GetRemoteDebuggingPort(
23 const base::CommandLine& command_line);
25 #endif // FUCHSIA_WEB_SHELL_REMOTE_DEBUGGING_PORT_H_