#include "chrome/browser/extensions/activity_log/activity_log_policy.h"
#include <stddef.h>
#include <stdint.h>
#include <utility>
#include "base/files/file_path.h"
#include "base/json/json_string_value_serializer.h"
#include "base/logging.h"
#include "base/time/clock.h"
#include "base/time/time.h"
#include "base/values.h"
#include "chrome/browser/extensions/activity_log/activity_action_constants.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/common/extension.h"
#include "url/gurl.h"
constants;
namespace extensions {
ActivityLogPolicy::ActivityLogPolicy(Profile* profile) { … }
ActivityLogPolicy::~ActivityLogPolicy() { … }
void ActivityLogPolicy::SetClockForTesting(base::Clock* clock) { … }
base::Time ActivityLogPolicy::Now() const { … }
ActivityLogDatabasePolicy::ActivityLogDatabasePolicy(
Profile* profile,
const base::FilePath& database_name)
: … { … }
void ActivityLogDatabasePolicy::Init() { … }
void ActivityLogDatabasePolicy::Flush() { … }
sql::Database* ActivityLogDatabasePolicy::GetDatabaseConnection() const { … }
std::string ActivityLogPolicy::Util::Serialize(
std::optional<base::ValueView> value) { … }
void ActivityLogPolicy::Util::StripPrivacySensitiveFields(
scoped_refptr<Action> action) { … }
void ActivityLogPolicy::Util::StripArguments(const ApiSet& api_allowlist,
scoped_refptr<Action> action) { … }
base::Time ActivityLogPolicy::Util::AddDays(const base::Time& base_date,
int days) { … }
void ActivityLogPolicy::Util::ComputeDatabaseTimeBounds(const base::Time& now,
int days_ago,
int64_t* early_bound,
int64_t* late_bound) { … }
}