chromium/extensions/common/permissions/socket_permission_data.cc

// 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.

#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

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() {}

// TODO(reillyg): Rewrite this method to support IPv6.
bool SocketPermissionData::Parse(const std::string& permission) {}

const std::string& SocketPermissionData::GetAsString() const {}

void SocketPermissionData::Reset() {}

}  // namespace extensions