#include "base/trace_event/memory_infra_background_allowlist.h"
#include <string.h>
#include <string>
#include <string_view>
#include "base/containers/contains.h"
#include "base/containers/fixed_flat_set.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "partition_alloc/buildflags.h"
#include "third_party/abseil-cpp/absl/strings/ascii.h"
#if BUILDFLAG(IS_ANDROID)
#include "base/android/meminfo_dump_provider.h"
#endif
namespace base::trace_event {
namespace {
constexpr auto kDumpProviderAllowlist = …;
constexpr auto kAllocatorDumpNameAllowlist = …;
base::span<const std::string_view> g_dump_provider_allowlist_for_testing;
base::span<const std::string_view> g_allocator_dump_name_allowlist_for_testing;
}
bool IsMemoryDumpProviderInAllowlist(const char* mdp_name) { … }
bool IsMemoryAllocatorDumpNameInAllowlist(const std::string& name) { … }
void SetDumpProviderAllowlistForTesting(
base::span<const std::string_view> list) { … }
void SetAllocatorDumpNameAllowlistForTesting(
base::span<const std::string_view> list) { … }
}