#include "net/log/net_log_with_source.h"
#include <memory>
#include <utility>
#include "base/check_op.h"
#include "base/no_destructor.h"
#include "base/values.h"
#include "net/base/net_errors.h"
#include "net/log/net_log.h"
#include "net/log/net_log_capture_mode.h"
#include "net/log/net_log_values.h"
namespace net {
namespace {
base::Value::Dict BytesTransferredParams(int byte_count,
const char* bytes,
NetLogCaptureMode capture_mode) { … }
}
NetLogWithSource::NetLogWithSource() { … }
NetLogWithSource::~NetLogWithSource() = default;
void NetLogWithSource::AddEntry(NetLogEventType type,
NetLogEventPhase phase) const { … }
void NetLogWithSource::AddEvent(NetLogEventType type) const { … }
void NetLogWithSource::AddEventWithStringParams(NetLogEventType type,
std::string_view name,
std::string_view value) const { … }
void NetLogWithSource::AddEventWithIntParams(NetLogEventType type,
std::string_view name,
int value) const { … }
void NetLogWithSource::BeginEventWithIntParams(NetLogEventType type,
std::string_view name,
int value) const { … }
void NetLogWithSource::EndEventWithIntParams(NetLogEventType type,
std::string_view name,
int value) const { … }
void NetLogWithSource::AddEventWithInt64Params(NetLogEventType type,
std::string_view name,
int64_t value) const { … }
void NetLogWithSource::BeginEventWithStringParams(
NetLogEventType type,
std::string_view name,
std::string_view value) const { … }
void NetLogWithSource::AddEventReferencingSource(
NetLogEventType type,
const NetLogSource& source) const { … }
void NetLogWithSource::BeginEventReferencingSource(
NetLogEventType type,
const NetLogSource& source) const { … }
void NetLogWithSource::BeginEvent(NetLogEventType type) const { … }
void NetLogWithSource::EndEvent(NetLogEventType type) const { … }
void NetLogWithSource::AddEventWithNetErrorCode(NetLogEventType event_type,
int net_error) const { … }
void NetLogWithSource::EndEventWithNetErrorCode(NetLogEventType event_type,
int net_error) const { … }
void NetLogWithSource::AddEntryWithBoolParams(NetLogEventType type,
NetLogEventPhase phase,
std::string_view name,
bool value) const { … }
void NetLogWithSource::AddByteTransferEvent(NetLogEventType event_type,
int byte_count,
const char* bytes) const { … }
NetLogWithSource NetLogWithSource::Make(NetLog* net_log,
NetLogSourceType source_type) { … }
NetLogWithSource NetLogWithSource::Make(NetLogSourceType source_type) { … }
NetLogWithSource NetLogWithSource::Make(NetLog* net_log,
const NetLogSource& source) { … }
NetLogWithSource NetLogWithSource::Make(const NetLogSource& source) { … }
NetLog* NetLogWithSource::net_log() const { … }
}