#include "content/browser/first_party_sets/first_party_sets_loader.h"
#include <sstream>
#include <utility>
#include "base/containers/flat_map.h"
#include "base/files/file_util.h"
#include "base/metrics/histogram_functions.h"
#include "base/sequence_checker.h"
#include "base/task/thread_pool.h"
#include "base/version.h"
#include "content/browser/first_party_sets/first_party_set_parser.h"
#include "net/first_party_sets/global_first_party_sets.h"
#include "net/first_party_sets/local_set_declaration.h"
namespace content {
namespace {
std::string ReadSetsFile(base::File sets_file) { … }
}
FirstPartySetsLoader::FirstPartySetsLoader(
LoadCompleteOnceCallback on_load_complete)
: … { … }
FirstPartySetsLoader::~FirstPartySetsLoader() { … }
void FirstPartySetsLoader::SetManuallySpecifiedSet(
const net::LocalSetDeclaration& local_set) { … }
void FirstPartySetsLoader::SetComponentSets(base::Version version,
base::File sets_file) { … }
void FirstPartySetsLoader::DisposeFile(base::File file) { … }
void FirstPartySetsLoader::OnReadSetsFile(base::Version version,
const std::string& raw_sets) { … }
void FirstPartySetsLoader::MaybeFinishLoading() { … }
}