#ifndef EXTENSIONS_COMMON_API_SOCKETS_TCP_SERVER_H__
#define EXTENSIONS_COMMON_API_SOCKETS_TCP_SERVER_H__
#include <stdint.h>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include "base/values.h"
namespace extensions {
namespace api {
namespace sockets_tcp_server {
struct SocketProperties { … };
struct CreateInfo { … };
struct SocketInfo { … };
struct AcceptInfo { … };
struct AcceptErrorInfo { … };
namespace Create {
struct Params { … };
namespace Results {
base::Value::List Create(const CreateInfo& create_info);
}
}
namespace Update {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace SetPaused {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace Listen {
struct Params { … };
namespace Results {
base::Value::List Create(int result);
}
}
namespace Disconnect {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace Close {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace GetInfo {
struct Params { … };
namespace Results {
base::Value::List Create(const SocketInfo& socket_info);
}
}
namespace GetSockets {
namespace Results {
base::Value::List Create(const std::vector<SocketInfo>& socket_infos);
}
}
namespace OnAccept {
extern const char kEventName[];
base::Value::List Create(const AcceptInfo& info);
}
namespace OnAcceptError {
extern const char kEventName[];
base::Value::List Create(const AcceptErrorInfo& info);
}
}
}
}
#endif