chromium/components/named_mojo_ipc_server/named_mojo_ipc_server.cc

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

#include "components/named_mojo_ipc_server/named_mojo_ipc_server.h"

#include <memory>
#include <utility>

#include "base/check.h"
#include "base/functional/bind.h"
#include "components/named_mojo_ipc_server/connection_info.h"
#include "components/named_mojo_ipc_server/endpoint_options.h"
#include "components/named_mojo_ipc_server/named_mojo_message_pipe_server.h"
#include "mojo/public/cpp/bindings/receiver_set.h"
#include "mojo/public/cpp/system/isolated_connection.h"
#include "mojo/public/cpp/system/message_pipe.h"

namespace named_mojo_ipc_server {

NamedMojoIpcServerBase::NamedMojoIpcServerBase(
    const EndpointOptions& options,
    base::RepeatingCallback<void*(std::unique_ptr<ConnectionInfo>)>
        impl_provider)
    :{}

NamedMojoIpcServerBase::~NamedMojoIpcServerBase() {}

void NamedMojoIpcServerBase::StartServer() {}

void NamedMojoIpcServerBase::StopServer() {}

void NamedMojoIpcServerBase::Close(mojo::ReceiverId id) {}

void NamedMojoIpcServerBase::OnIpcDisconnected() {}

void NamedMojoIpcServerBase::OnMessagePipeReady(
    mojo::ScopedMessagePipeHandle message_pipe,
    base::ProcessId peer_pid,
    void* context,
    std::unique_ptr<mojo::IsolatedConnection> connection) {}

}  // namespace named_mojo_ipc_server