[M120 Migration][VD] Enable direct rendering for TVPlus
[platform/framework/web/chromium-efl.git] / fuchsia_web / shell / remote_debugging_port.h
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.
4
5 #ifndef FUCHSIA_WEB_SHELL_REMOTE_DEBUGGING_PORT_H_
6 #define FUCHSIA_WEB_SHELL_REMOTE_DEBUGGING_PORT_H_
7
8 #include "third_party/abseil-cpp/absl/types/optional.h"
9
10 extern const char kRemoteDebuggingPortSwitch[];
11
12 namespace base {
13
14 class CommandLine;
15
16 }  // namespace base
17
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
21 // failure.
22 absl::optional<uint16_t> GetRemoteDebuggingPort(
23     const base::CommandLine& command_line);
24
25 #endif  // FUCHSIA_WEB_SHELL_REMOTE_DEBUGGING_PORT_H_