chromium/net/log/net_log.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

// static
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) {}

// static
std::string NetLog::TickCountToString(const base::TimeTicks& time) {}

// static
std::string NetLog::TimeToString(const base::Time& time) {}

// static
base::Value NetLog::GetEventTypesAsValue() {}

// static
const char* NetLog::SourceTypeToString(NetLogSourceType source) {}

// static
base::Value NetLog::GetSourceTypesAsValue() {}

// static
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) {}

}  // namespace net