#include "base/environment.h"
#include <array>
#include <string_view>
#include "base/memory/ptr_util.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_WIN)
#include <windows.h>
#elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
#include <stdlib.h>
#endif
namespace base {
namespace {
class EnvironmentImpl : public Environment { … };
}
namespace env_vars {
#if BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
const char kHome[] = …;
#endif
}
Environment::~Environment() = default;
std::unique_ptr<Environment> Environment::Create() { … }
bool Environment::HasVar(std::string_view variable_name) { … }
}