1 // Copyright 2021 The Chromium Authors. All rights reserved.
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 QUICHE_COMMON_PLATFORM_DEFAULT_QUICHE_PLATFORM_IMPL_QUICHE_FILE_UTILS_IMPL_H_
6 #define QUICHE_COMMON_PLATFORM_DEFAULT_QUICHE_PLATFORM_IMPL_QUICHE_FILE_UTILS_IMPL_H_
7 
8 #include <optional>
9 #include <string>
10 #include <vector>
11 
12 #include "absl/strings/string_view.h"
13 
14 namespace quiche {
15 
16 std::string JoinPathImpl(absl::string_view a, absl::string_view b);
17 
18 std::optional<std::string> ReadFileContentsImpl(absl::string_view file);
19 
20 bool EnumerateDirectoryImpl(absl::string_view path,
21                             std::vector<std::string>& directories,
22                             std::vector<std::string>& files);
23 
24 }  // namespace quiche
25 
26 #endif  // QUICHE_COMMON_PLATFORM_DEFAULT_QUICHE_PLATFORM_IMPL_QUICHE_FILE_UTILS_IMPL_H_
27