[M120 Migration][VD] Enable direct rendering for TVPlus
[platform/framework/web/chromium-efl.git] / components / component_updater / component_updater_utils.h
1 // Copyright 2021 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_COMPONENT_UPDATER_COMPONENT_UPDATER_UTILS_H_
6 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_UTILS_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/containers/flat_map.h"
12 #include "third_party/abseil-cpp/absl/types/optional.h"
13
14 namespace component_updater {
15 struct ComponentRegistration;
16
17 absl::optional<ComponentRegistration> GetComponent(
18     const base::flat_map<std::string, ComponentRegistration>& components,
19     const std::string& id);
20
21 std::vector<absl::optional<ComponentRegistration>> GetCrxComponents(
22     const base::flat_map<std::string, ComponentRegistration>&
23         registered_components,
24     const std::vector<std::string>& ids);
25
26 }  // namespace component_updater
27
28 #endif  // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_UTILS_H_