#include "extensions/common/permissions/socket_permission_data.h"
#include <cstdlib>
#include <memory>
#include <sstream>
#include <vector>
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "extensions/common/permissions/api_permission.h"
#include "extensions/common/permissions/socket_permission.h"
#include "url/url_canon.h"
namespace {
SocketPermissionRequest;
SocketPermissionData;
const char kInvalid[] = …;
const char kTCPConnect[] = …;
const char kTCPListen[] = …;
const char kUDPBind[] = …;
const char kUDPSendTo[] = …;
const char kUDPMulticastMembership[] = …;
const char kResolveHost[] = …;
const char kResolveProxy[] = …;
const char kNetworkState[] = …;
SocketPermissionRequest::OperationType StringToType(const std::string& s) { … }
const char* TypeToString(SocketPermissionRequest::OperationType type) { … }
}
namespace extensions {
SocketPermissionData::SocketPermissionData() = default;
SocketPermissionData::~SocketPermissionData() = default;
bool SocketPermissionData::operator<(const SocketPermissionData& rhs) const { … }
bool SocketPermissionData::operator==(const SocketPermissionData& rhs) const { … }
bool SocketPermissionData::Check(const APIPermission::CheckParam* param) const { … }
std::unique_ptr<base::Value> SocketPermissionData::ToValue() const { … }
bool SocketPermissionData::FromValue(const base::Value* value) { … }
SocketPermissionEntry& SocketPermissionData::entry() { … }
bool SocketPermissionData::Parse(const std::string& permission) { … }
const std::string& SocketPermissionData::GetAsString() const { … }
void SocketPermissionData::Reset() { … }
}