1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23

fuchsia_web / shell / remote_debugging_port.h [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 <optional>

extern const char kRemoteDebuggingPortSwitch[];

namespace base {

class CommandLine;

}  // namespace base

// Returns the debugging port parsed from the |command_line|; if no flag is
// provided or the value is invalid, returns nullopt.
std::optional<uint16_t> GetRemoteDebuggingPort(
    const base::CommandLine& command_line);

#endif  // FUCHSIA_WEB_SHELL_REMOTE_DEBUGGING_PORT_H_