#include "net/log/net_log.h"
#include "base/check_op.h"
#include "base/containers/contains.h"
#include "base/no_destructor.h"
#include "base/not_fatal_until.h"
#include "base/notreached.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
#include "net/log/net_log_values.h"
namespace net {
NetLog::ThreadSafeObserver::ThreadSafeObserver() = default;
NetLog::ThreadSafeObserver::~ThreadSafeObserver() { … }
NetLogCaptureMode NetLog::ThreadSafeObserver::capture_mode() const { … }
NetLog* NetLog::ThreadSafeObserver::net_log() const { … }
NetLog::ThreadSafeCaptureModeObserver::ThreadSafeCaptureModeObserver() =
default;
NetLog::ThreadSafeCaptureModeObserver::~ThreadSafeCaptureModeObserver() =
default;
NetLogCaptureModeSet
NetLog::ThreadSafeCaptureModeObserver::GetObserverCaptureModes() const { … }
void NetLog::ThreadSafeCaptureModeObserver::
AddEntryAtTimeWithMaterializedParams(NetLogEventType type,
const NetLogSource& source,
NetLogEventPhase phase,
base::TimeTicks time,
base::Value::Dict params) { … }
NetLog* NetLog::Get() { … }
NetLog::NetLog(base::PassKey<NetLog>) { … }
NetLog::NetLog(base::PassKey<NetLogWithSource>) { … }
void NetLog::AddEntry(NetLogEventType type,
const NetLogSource& source,
NetLogEventPhase phase) { … }
void NetLog::AddGlobalEntry(NetLogEventType type) { … }
void NetLog::AddGlobalEntryWithStringParams(NetLogEventType type,
std::string_view name,
std::string_view value) { … }
uint32_t NetLog::NextID() { … }
void NetLog::AddObserver(NetLog::ThreadSafeObserver* observer,
NetLogCaptureMode capture_mode) { … }
void NetLog::RemoveObserver(NetLog::ThreadSafeObserver* observer) { … }
void NetLog::AddCaptureModeObserver(
NetLog::ThreadSafeCaptureModeObserver* observer) { … }
void NetLog::RemoveCaptureModeObserver(
NetLog::ThreadSafeCaptureModeObserver* observer) { … }
void NetLog::UpdateObserverCaptureModes() { … }
bool NetLog::HasObserver(ThreadSafeObserver* observer) { … }
bool NetLog::HasCaptureModeObserver(ThreadSafeCaptureModeObserver* observer) { … }
std::string NetLog::TickCountToString(const base::TimeTicks& time) { … }
std::string NetLog::TimeToString(const base::Time& time) { … }
base::Value NetLog::GetEventTypesAsValue() { … }
const char* NetLog::SourceTypeToString(NetLogSourceType source) { … }
base::Value NetLog::GetSourceTypesAsValue() { … }
const char* NetLog::EventPhaseToString(NetLogEventPhase phase) { … }
void NetLog::InitializeSourceIdPartition() { … }
void NetLog::AddEntryInternal(NetLogEventType type,
const NetLogSource& source,
NetLogEventPhase phase,
const GetParamsInterface* get_params) { … }
void NetLog::AddEntryWithMaterializedParams(NetLogEventType type,
const NetLogSource& source,
NetLogEventPhase phase,
base::Value::Dict params) { … }
void NetLog::AddEntryAtTimeWithMaterializedParams(NetLogEventType type,
const NetLogSource& source,
NetLogEventPhase phase,
base::TimeTicks time,
base::Value::Dict params) { … }
}