summaryrefslogtreecommitdiff
path: root/chromium/fuchsia/base/config_reader.h
blob: d76449aa607bf662e1e9db5b3f43a4cd6e4c1178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FUCHSIA_BASE_CONFIG_READER_H_
#define FUCHSIA_BASE_CONFIG_READER_H_

#include "base/files/file_path.h"
#include "base/values.h"

namespace cr_fuchsia {

// Loads and parses configuration data from the environment.
// Returns a null value if the file(s) do not exist.
// CHECK-fails if the file(s) are present but not parseable.
const base::Optional<base::Value>& LoadPackageConfig();

}  // namespace cr_fuchsia

#endif  // FUCHSIA_BASE_CONFIG_READER_H_