#include "chrome/browser/safe_browsing/incident_reporting/state_store.h"
#include <memory>
#include <utility>
#include "base/metrics/histogram_macros.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/safe_browsing/incident_reporting/incident.h"
#include "chrome/browser/safe_browsing/incident_reporting/platform_state_store.h"
#include "components/prefs/pref_service.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
namespace safe_browsing {
StateStore::Transaction::Transaction(StateStore* store) : … { … }
StateStore::Transaction::~Transaction() { … }
void StateStore::Transaction::MarkAsReported(IncidentType type,
const std::string& key,
IncidentDigest digest) { … }
void StateStore::Transaction::Clear(IncidentType type, const std::string& key) { … }
void StateStore::Transaction::ClearForType(IncidentType type) { … }
void StateStore::Transaction::ClearAll() { … }
base::Value::Dict& StateStore::Transaction::GetPrefDict() { … }
void StateStore::Transaction::ReplacePrefDict(base::Value::Dict pref_dict) { … }
StateStore::StateStore(Profile* profile)
: … { … }
StateStore::~StateStore() { … }
bool StateStore::HasBeenReported(IncidentType type,
const std::string& key,
IncidentDigest digest) { … }
void StateStore::CleanLegacyValues(Transaction* transaction) { … }
}