chromium/net/log/net_log_with_source.cc

// Copyright 2016 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_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 {

// Returns parameters for logging data transferred events. At a minimum includes
// the number of bytes transferred. If the capture mode allows logging byte
// contents and |byte_count| > 0, then will include the actual bytes.
base::Value::Dict BytesTransferredParams(int byte_count,
                                         const char* bytes,
                                         NetLogCaptureMode capture_mode) {}

}  // namespace

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

// static
NetLogWithSource NetLogWithSource::Make(NetLog* net_log,
                                        NetLogSourceType source_type) {}

// static
NetLogWithSource NetLogWithSource::Make(NetLogSourceType source_type) {}

// static
NetLogWithSource NetLogWithSource::Make(NetLog* net_log,
                                        const NetLogSource& source) {}

// static
NetLogWithSource NetLogWithSource::Make(const NetLogSource& source) {}

NetLog* NetLogWithSource::net_log() const {}

}  // namespace net