chromium/net/log/net_log_values.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_values.h"

#include "base/base64.h"
#include "base/strings/escape.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/values.h"

namespace net {

namespace {

// IEEE 64-bit doubles have a 52-bit mantissa, and can therefore represent
// 53-bits worth of precision (see also documentation for JavaScript's
// Number.MAX_SAFE_INTEGER for more discussion on this).
//
// If the number can be represented with an int or double use that. Otherwise
// fallback to encoding it as a string.
template <typename T>
base::Value NetLogNumberValueHelper(T num) {}

}  // namespace

base::Value NetLogStringValue(std::string_view raw) {}

base::Value NetLogBinaryValue(base::span<const uint8_t> bytes) {}

base::Value NetLogBinaryValue(const void* bytes, size_t length) {}

base::Value NetLogNumberValue(int64_t num) {}

base::Value NetLogNumberValue(uint64_t num) {}

base::Value NetLogNumberValue(uint32_t num) {}

base::Value::Dict NetLogParamsWithInt(std::string_view name, int value) {}

base::Value::Dict NetLogParamsWithInt64(std::string_view name, int64_t value) {}

base::Value::Dict NetLogParamsWithBool(std::string_view name, bool value) {}

base::Value::Dict NetLogParamsWithString(std::string_view name,
                                         std::string_view value) {}

}  // namespace net