chromium/chrome/browser/net/probe_message.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "chrome/browser/net/probe_message.h"

#include <stddef.h>

#include <string>

#include "base/check_op.h"
#include "base/logging.h"

namespace chrome_browser_net {

const uint32_t ProbeMessage::kVersion =;
const uint32_t ProbeMessage::kMaxNumberProbePackets =;
const uint32_t ProbeMessage::kMaxProbePacketBytes =;
// Maximum pacing interval is 300 seconds (for testing NAT binding).
const uint32_t ProbeMessage::kMaxPacingIntervalMicros =;
const char ProbeMessage::kEncodingString[] =;

ProbeMessage::ProbeMessage() {}

bool ProbeMessage::ParseInput(const std::string& input,
                              ProbePacket* probe_packet) const {}

uint32_t ProbeMessage::Checksum(const std::string& str) const {}

void ProbeMessage::GenerateProbeRequest(const ProbePacket_Token& token,
                                        uint32_t group_id,
                                        uint32_t probe_size,
                                        uint32_t pacing_interval_micros,
                                        uint32_t number_probe_packets,
                                        ProbePacket* probe_packet) {}

void ProbeMessage::SetPacketHeader(ProbePacket_Type packet_type,
                                   ProbePacket* probe_packet) const {}

std::string ProbeMessage::Encode(const std::string& input) const {}

std::string ProbeMessage::MakeEncodedPacket(
    const ProbePacket& probe_packet) const {}

}  // namespace chrome_browser_net