blob: 3454ff608258020010161f129550ea4bd494ddc1 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FUCHSIA_WEB_SHELL_REMOTE_DEBUGGING_PORT_H_
#define FUCHSIA_WEB_SHELL_REMOTE_DEBUGGING_PORT_H_
#include "third_party/abseil-cpp/absl/types/optional.h"
extern const char kRemoteDebuggingPortSwitch[];
namespace base {
class CommandLine;
} // namespace base
// Return default value of 0 if |command_line| does not have remote debugging
// port switch. If |command_line| contains the appropriate switch, returns the
// remote debugging port specified in the |command_line| or nullopt on parsing
// failure.
absl::optional<uint16_t> GetRemoteDebuggingPort(
const base::CommandLine& command_line);
#endif // FUCHSIA_WEB_SHELL_REMOTE_DEBUGGING_PORT_H_