#include "chrome/browser/extensions/activity_log/activity_actions.h"
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include "base/format_macros.h"
#include "base/json/json_string_value_serializer.h"
#include "base/memory/ptr_util.h"
#include "base/memory/scoped_refptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/extensions/activity_log/activity_action_constants.h"
#include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h"
#include "extensions/common/constants.h"
#include "extensions/common/dom_action_types.h"
#include "url/gurl.h"
constants;
activity_log;
namespace extensions {
namespace {
std::string Serialize(std::optional<base::ValueView> value) { … }
}
ExtensionActivity;
Action::Action(const std::string& extension_id,
const base::Time& time,
const ActionType action_type,
const std::string& api_name,
int64_t action_id)
: … { … }
Action::~Action() { … }
scoped_refptr<Action> Action::Clone() const { … }
void Action::set_args(std::optional<base::Value::List> args) { … }
base::Value::List& Action::mutable_args() { … }
void Action::set_page_url(const GURL& page_url) { … }
void Action::set_arg_url(const GURL& arg_url) { … }
void Action::set_other(std::optional<base::Value::Dict> other) { … }
base::Value::Dict& Action::mutable_other() { … }
std::string Action::SerializePageUrl() const { … }
void Action::ParsePageUrl(const std::string& url) { … }
std::string Action::SerializeArgUrl() const { … }
void Action::ParseArgUrl(const std::string& url) { … }
ExtensionActivity Action::ConvertToExtensionActivity() { … }
std::string Action::PrintForDebug() const { … }
bool ActionComparator::operator()(
const scoped_refptr<Action>& lhs,
const scoped_refptr<Action>& rhs) const { … }
bool ActionComparatorExcludingTimeAndActionId::operator()(
const scoped_refptr<Action>& lhs,
const scoped_refptr<Action>& rhs) const { … }
}