#include "components/breadcrumbs/core/application_breadcrumbs_logger.h"
#include <algorithm>
#include "base/functional/bind.h"
#include "base/strings/stringprintf.h"
#include "components/breadcrumbs/core/application_breadcrumbs_not_user_action.inc"
#include "components/breadcrumbs/core/breadcrumb_manager.h"
#include "components/breadcrumbs/core/breadcrumb_persistent_storage_manager.h"
namespace breadcrumbs {
namespace {
void AddEvent(const std::string& event) { … }
}
ApplicationBreadcrumbsLogger::ApplicationBreadcrumbsLogger(
const base::FilePath& storage_dir,
base::RepeatingCallback<bool()> is_metrics_enabled_callback)
: … { … }
ApplicationBreadcrumbsLogger::~ApplicationBreadcrumbsLogger() { … }
BreadcrumbPersistentStorageManager*
ApplicationBreadcrumbsLogger::GetPersistentStorageManager() const { … }
void ApplicationBreadcrumbsLogger::OnUserAction(const std::string& action,
base::TimeTicks action_time) { … }
void ApplicationBreadcrumbsLogger::OnMemoryPressure(
base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level) { … }
bool ApplicationBreadcrumbsLogger::IsUserTriggeredAction(
const std::string& action) { … }
}