#include "base/trace_event/trace_config_category_filter.h"
#include <string_view>
#include "base/memory/ptr_util.h"
#include "base/strings/pattern.h"
#include "base/strings/string_split.h"
#include "base/strings/string_tokenizer.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/trace_event/trace_event.h"
namespace base::trace_event {
namespace {
const char kIncludedCategoriesParam[] = …;
const char kExcludedCategoriesParam[] = …;
bool AreStringListsEquivalent(const std::vector<std::string>& list1,
const std::vector<std::string>& list2) { … }
}
TraceConfigCategoryFilter::TraceConfigCategoryFilter() = default;
TraceConfigCategoryFilter::TraceConfigCategoryFilter(
const TraceConfigCategoryFilter& other) = default;
TraceConfigCategoryFilter::~TraceConfigCategoryFilter() = default;
TraceConfigCategoryFilter& TraceConfigCategoryFilter::operator=(
const TraceConfigCategoryFilter& rhs) = default;
bool TraceConfigCategoryFilter::IsEquivalentTo(
const TraceConfigCategoryFilter& other) const { … }
void TraceConfigCategoryFilter::InitializeFromString(
std::string_view category_filter_string) { … }
void TraceConfigCategoryFilter::InitializeFromConfigDict(
const Value::Dict& dict) { … }
bool TraceConfigCategoryFilter::IsCategoryGroupEnabled(
std::string_view category_group_name) const { … }
bool TraceConfigCategoryFilter::IsCategoryEnabled(
std::string_view category_name) const { … }
void TraceConfigCategoryFilter::Merge(const TraceConfigCategoryFilter& config) { … }
void TraceConfigCategoryFilter::Clear() { … }
void TraceConfigCategoryFilter::ToDict(Value::Dict& dict) const { … }
std::string TraceConfigCategoryFilter::ToFilterString() const { … }
void TraceConfigCategoryFilter::SetCategoriesFromIncludedList(
const Value::List& included_list) { … }
void TraceConfigCategoryFilter::SetCategoriesFromExcludedList(
const Value::List& excluded_list) { … }
void TraceConfigCategoryFilter::AddCategoriesToDict(
const StringList& categories,
const char* param,
Value::Dict& dict) const { … }
void TraceConfigCategoryFilter::WriteCategoryFilterString(
const StringList& values,
std::string* out,
bool included) const { … }
bool TraceConfigCategoryFilter::IsCategoryNameAllowed(std::string_view str) { … }
}