chromium/services/network/public/cpp/p2p_socket_type.h

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

// This file defines some basic types used by the P2P-related IPC
// messages.

#ifndef SERVICES_NETWORK_PUBLIC_CPP_P2P_SOCKET_TYPE_H_
#define SERVICES_NETWORK_PUBLIC_CPP_P2P_SOCKET_TYPE_H_

#include <stdint.h>

#include <string>

#include "net/base/ip_endpoint.h"
#include "third_party/webrtc/rtc_base/async_packet_socket.h"

namespace network {

enum P2PSocketOption {};

// Type of P2P Socket.
enum P2PSocketType {};

// Struct which carries both resolved IP address and host string literal.
// Port number will be part of |ip_address|.
struct P2PHostAndIPEndPoint {};

// Struct which keeps track of metrics during a send operation on P2P sockets.
struct P2PSendPacketMetrics {};

// Struct that carries a port range.
struct P2PPortRange {};

// Struct that carries information about an outgoing packet.
struct P2PPacketInfo {};

}  // namespace network

#endif  // SERVICES_NETWORK_PUBLIC_CPP_P2P_SOCKET_TYPE_H_