chromium/chrome/browser/extensions/activity_log/activity_actions.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace

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() {}

// TODO(mvrable): As an optimization, we might return this directly if the
// refcount is one.  However, there are likely to be other stray references in
// many cases that will prevent this optimization.
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 {}

}  // namespace extensions