Android-cuttlefish cvd tool
downloaders.h
Go to the documentation of this file.
1//
2// Copyright (C) 2025 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#pragma once
17
18#include <memory>
19#include <string>
20
25
26namespace cuttlefish {
27
29 public:
31 const std::string& target_directory,
32 const std::string& cache_base_path);
33
36
39
40 private:
41 struct Impl; // for pimpl
42
43 Downloaders(std::unique_ptr<Impl>);
44
45 std::unique_ptr<Impl> impl_;
46};
47
48} // namespace cuttlefish
Definition: build_api.h:27
Definition: downloaders.h:28
Downloaders(Downloaders &&)
std::unique_ptr< Impl > impl_
Definition: downloaders.h:45
BuildApi & AndroidBuild()
Definition: downloaders.cc:114
Downloaders(std::unique_ptr< Impl >)
LuciBuildApi & Luci()
Definition: downloaders.cc:122
static Result< Downloaders > Create(const BuildApiFlags &, const std::string &target_directory, const std::string &cache_base_path)
Definition: downloaders.cc:58
Definition: luci_build_api.h:34
Definition: alloc_driver.h:20
tl::expected< T, StackTraceError > Result
Definition: result_type.h:30
Definition: build_api_flags.h:39
Definition: downloaders.cc:40