forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
component_updater_utils.h
31 lines (22 loc) · 1022 Bytes
/
component_updater_utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2021 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 COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_UTILS_H_
#define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_UTILS_H_
#include <string>
#include <vector>
#include "base/containers/flat_map.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
namespace update_client {
struct CrxComponent;
} // namespace update_client
namespace component_updater {
absl::optional<update_client::CrxComponent> GetComponent(
const base::flat_map<std::string, update_client::CrxComponent>& components,
const std::string& id);
std::vector<absl::optional<update_client::CrxComponent>> GetCrxComponents(
const base::flat_map<std::string, update_client::CrxComponent>&
registered_components,
const std::vector<std::string>& ids);
} // namespace component_updater
#endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_UTILS_H_