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
27
28namespace cuttlefish {
29
31 public:
33 const std::string& target_directory,
34 const std::string& cache_base_path);
35
38
41
42 private:
43 struct Impl; // for pimpl
44
45 Downloaders(std::unique_ptr<Impl>);
46
47 std::unique_ptr<Impl> impl_;
48};
49
50} // namespace cuttlefish
Definition: downloaders.h:30
BuildApi< BuildString, Build > & Builds()
Definition: downloaders.cc:166
Downloaders(Downloaders &&)
std::unique_ptr< Impl > impl_
Definition: downloaders.h:47
Downloaders(std::unique_ptr< Impl >)
LuciBuildApi & Luci()
Definition: downloaders.cc:173
static Result< Downloaders > Create(const BuildApiFlags &, const std::string &target_directory, const std::string &cache_base_path)
Definition: downloaders.cc:82
Definition: luci_build_api.h:34
Definition: alloc_driver.h:21
tl::expected< T, StackTraceError< E > > Result
Definition: result_type.h:30
Definition: build_api_flags.h:39
Definition: downloaders.cc:50