#include "components/policy/core/common/cloud/cloud_external_data_store.h"
#include <set>
#include "base/check.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/sequenced_task_runner.h"
#include "components/policy/core/common/cloud/resource_cache.h"
#include "crypto/sha2.h"
namespace policy {
namespace {
std::string GetSubkey(const std::string& key, const std::string& hash) { … }
}
CloudExternalDataStore::CloudExternalDataStore(
const std::string& cache_key,
scoped_refptr<base::SequencedTaskRunner> task_runner,
ResourceCache* cache)
: … { … }
CloudExternalDataStore::~CloudExternalDataStore() { … }
void CloudExternalDataStore::Prune(const PruningData& key_hash_pairs_to_keep) { … }
base::FilePath CloudExternalDataStore::Store(const std::string& key,
const std::string& hash,
const std::string& data) { … }
base::FilePath CloudExternalDataStore::Load(const std::string& key,
const std::string& hash,
size_t max_size,
std::string* data) { … }
}