#include "chrome/browser/safe_browsing/extension_telemetry/extension_js_callstacks.h"
#include "base/containers/span.h"
#include "base/debug/crash_logging.h"
#include "base/hash/sha1.h"
#include "base/strings/utf_string_conversions.h"
namespace {
constexpr unsigned int kMaxCallStacks = …;
}
namespace safe_browsing {
ExtensionJSCallStacks::ExtensionJSCallStacks() = default;
ExtensionJSCallStacks::~ExtensionJSCallStacks() = default;
ExtensionJSCallStacks::ExtensionJSCallStacks(const ExtensionJSCallStacks& src) =
default;
void ExtensionJSCallStacks::Add(const extensions::StackTrace& callstack) { … }
RepeatedPtrField<SignalInfoJSCallStack> ExtensionJSCallStacks::GetAll() { … }
unsigned int ExtensionJSCallStacks::MaxCallStacks() { … }
SignalInfoJSCallStack ExtensionJSCallStacks::ToSignalInfoJSCallStack(
const extensions::StackTrace& callstack) { … }
extensions::StackTrace ExtensionJSCallStacks::ToExtensionsStackTrace(
const SignalInfoJSCallStack& siginfo_callstack) { … }
std::string ExtensionJSCallStacks::GetUniqueId(
const SignalInfoJSCallStack& siginfo_callstack) { … }
std::string ExtensionJSCallStacks::SignalInfoJSCallStackAsString(
const SignalInfoJSCallStack& js_callstack) { … }
}