chromium/services/network/proxy_resolving_socket_mojo.cc

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

#include "services/network/proxy_resolving_socket_mojo.h"

#include <optional>
#include <utility>

#include "base/check.h"
#include "base/functional/bind.h"
#include "net/base/net_errors.h"
#include "services/network/public/mojom/tls_socket.mojom.h"
#include "services/network/socket_data_pump.h"

namespace network {

ProxyResolvingSocketMojo::ProxyResolvingSocketMojo(
    std::unique_ptr<net::StreamSocket> socket,
    const net::NetworkTrafficAnnotationTag& traffic_annotation,
    mojo::PendingRemote<mojom::SocketObserver> observer,
    TLSSocketFactory* tls_socket_factory)
    :{}

ProxyResolvingSocketMojo::~ProxyResolvingSocketMojo() {}

void ProxyResolvingSocketMojo::Connect(
    mojom::ProxyResolvingSocketFactory::CreateProxyResolvingSocketCallback
        callback) {}

void ProxyResolvingSocketMojo::UpgradeToTLS(
    const net::HostPortPair& host_port_pair,
    const net::MutableNetworkTrafficAnnotationTag& traffic_annotation,
    mojo::PendingReceiver<mojom::TLSClientSocket> receiver,
    mojo::PendingRemote<mojom::SocketObserver> observer,
    mojom::ProxyResolvingSocket::UpgradeToTLSCallback callback) {}

void ProxyResolvingSocketMojo::OnConnectCompleted(int result) {}

void ProxyResolvingSocketMojo::OnNetworkReadError(int net_error) {}

void ProxyResolvingSocketMojo::OnNetworkWriteError(int net_error) {}

void ProxyResolvingSocketMojo::OnShutdown() {}

const net::StreamSocket* ProxyResolvingSocketMojo::BorrowSocket() {}

std::unique_ptr<net::StreamSocket> ProxyResolvingSocketMojo::TakeSocket() {}

}  // namespace network