#include "components/cross_device/logging/log_buffer.h"
#include "base/no_destructor.h"
namespace {
constexpr size_t kMaxBufferSize = …;
}
CrossDeviceLogBuffer::LogMessage::LogMessage(const std::string& text,
Feature feature,
base::Time time,
const std::string& file,
int line,
logging::LogSeverity severity)
: … { … }
CrossDeviceLogBuffer::LogMessage::LogMessage(const LogMessage& message) =
default;
CrossDeviceLogBuffer::CrossDeviceLogBuffer() = default;
CrossDeviceLogBuffer::~CrossDeviceLogBuffer() = default;
CrossDeviceLogBuffer* CrossDeviceLogBuffer::GetInstance() { … }
void CrossDeviceLogBuffer::AddObserver(Observer* observer) { … }
void CrossDeviceLogBuffer::RemoveObserver(Observer* observer) { … }
void CrossDeviceLogBuffer::AddLogMessage(const LogMessage& log_message) { … }
void CrossDeviceLogBuffer::Clear() { … }
size_t CrossDeviceLogBuffer::MaxBufferSize() const { … }