#include "extensions/common/permissions/socket_permission.h"
#include <algorithm>
#include <memory>
#include "base/strings/utf_string_conversions.h"
#include "extensions/common/api/sockets/sockets_manifest_permission.h"
#include "extensions/common/permissions/permissions_info.h"
#include "extensions/common/permissions/set_disjunction_permission.h"
#include "extensions/strings/grit/extensions_strings.h"
#include "ui/base/l10n/l10n_util.h"
namespace extensions {
namespace {
SocketPermissionEntrySet ExtractSocketEntries(
const std::set<SocketPermissionData>& data_set) { … }
}
SocketPermission::SocketPermission(const APIPermissionInfo* info)
: … { … }
SocketPermission::~SocketPermission() = default;
bool SocketPermission::FromValue(
const base::Value* value,
std::string* error,
std::vector<std::string>* unhandled_permissions) { … }
PermissionIDSet SocketPermission::GetPermissions() const { … }
}