#include "components/offline_pages/core/offline_page_client_policy.h"
#include <map>
#include <string>
#include <utility>
#include <vector>
#include "base/no_destructor.h"
#include "base/time/time.h"
#include "components/offline_pages/core/client_namespace_constants.h"
namespace offline_pages {
namespace {
struct PolicyData { … };
PolicyData BuildPolicies() { … }
const PolicyData& GetPolicyData() { … }
}
OfflinePageClientPolicy::OfflinePageClientPolicy(std::string namespace_val,
LifetimeType lifetime_type_val)
: … { … }
OfflinePageClientPolicy OfflinePageClientPolicy::CreateTemporary(
const std::string& name_space,
const base::TimeDelta& expiration_period) { … }
OfflinePageClientPolicy OfflinePageClientPolicy::CreatePersistent(
const std::string& name_space) { … }
OfflinePageClientPolicy::OfflinePageClientPolicy(
const OfflinePageClientPolicy& other) = default;
OfflinePageClientPolicy::~OfflinePageClientPolicy() = default;
const OfflinePageClientPolicy& GetPolicy(const std::string& name) { … }
const std::vector<std::string>& GetAllPolicyNamespaces() { … }
const std::vector<std::string>& GetTemporaryPolicyNamespaces() { … }
const std::vector<std::string>& GetPersistentPolicyNamespaces() { … }
}