#include "base/memory/discardable_memory.h"
#include "base/feature_list.h"
#include "base/memory/discardable_memory_internal.h"
#include "base/memory/madv_free_discardable_memory_posix.h"
#include "base/metrics/field_trial_params.h"
#include "base/notreached.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_ANDROID)
#include "third_party/ashmem/ashmem.h"
#endif
namespace base {
namespace features {
#if BUILDFLAG(IS_POSIX)
BASE_FEATURE(…);
#endif
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
BASE_FEATURE(…);
#endif
}
namespace {
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
DiscardableMemoryBacking GetBackingForFieldTrial() { … }
#endif
}
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
bool DiscardableMemoryBackingFieldTrialIsEnabled() { … }
DiscardableMemoryTrialGroup GetDiscardableMemoryBackingFieldTrialGroup() { … }
#endif
DiscardableMemory::DiscardableMemory() = default;
DiscardableMemory::~DiscardableMemory() = default;
DiscardableMemoryBacking GetDiscardableMemoryBacking() { … }
}