#include "components/autofill/core/browser/logging/log_manager.h"
#include <utility>
#include "base/memory/raw_ptr.h"
#include "components/autofill/core/browser/logging/log_router.h"
namespace autofill {
namespace {
class RoutingLogManagerImpl : public RoutingLogManager { … };
RoutingLogManagerImpl::RoutingLogManagerImpl(
LogRouter* log_router,
base::RepeatingClosure notification_callback)
: … { … }
RoutingLogManagerImpl::~RoutingLogManagerImpl() { … }
void RoutingLogManagerImpl::OnLogRouterAvailabilityChanged(
bool router_can_be_used) { … }
void RoutingLogManagerImpl::SetSuspended(bool suspended) { … }
bool RoutingLogManagerImpl::IsLoggingActive() const { … }
LogBufferSubmitter RoutingLogManagerImpl::Log() { … }
void RoutingLogManagerImpl::ProcessLog(base::Value::Dict node,
base::PassKey<LogBufferSubmitter>) { … }
class BufferingLogManagerImpl : public BufferingLogManager { … };
void BufferingLogManagerImpl::Flush(LogManager& destination) { … }
bool BufferingLogManagerImpl::IsLoggingActive() const { … }
LogBufferSubmitter BufferingLogManagerImpl::Log() { … }
void BufferingLogManagerImpl::ProcessLog(
base::Value::Dict node,
base::PassKey<LogBufferSubmitter> pass_key) { … }
}
std::unique_ptr<RoutingLogManager> LogManager::Create(
LogRouter* log_router,
base::RepeatingClosure notification_callback) { … }
std::unique_ptr<BufferingLogManager> LogManager::CreateBuffering() { … }
}