[M120 Migration][VD] Enable direct rendering for TVPlus
[platform/framework/web/chromium-efl.git] / components / fuchsia_component_support / append_arguments_from_file.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 COMPONENTS_FUCHSIA_COMPONENT_SUPPORT_APPEND_ARGUMENTS_FROM_FILE_H_
6 #define COMPONENTS_FUCHSIA_COMPONENT_SUPPORT_APPEND_ARGUMENTS_FROM_FILE_H_
7
8 namespace base {
9 class CommandLine;
10 class FilePath;
11 }  // namespace base
12
13 namespace fuchsia_component_support {
14
15 // Reads serialized arguments from the optional file at `path` and appends them
16 // to `command_line`. See SerializeArguments for the converse. Returns true if
17 // the file was absent or was well-formed and successfully parsed, regardless of
18 // whether or not any arguments were found within it.
19 bool AppendArgumentsFromFile(const base::FilePath& path,
20                              base::CommandLine& command_line);
21
22 }  // namespace fuchsia_component_support
23
24 #endif  // COMPONENTS_FUCHSIA_COMPONENT_SUPPORT_APPEND_ARGUMENTS_FROM_FILE_H_