#ifdef UNSAFE_BUFFERS_BUILD
#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 = …;
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 { … }
}