blob: 72ff2d22f56b572abb9ffb92dbf0cf7be258d8b7 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "mojo/public/cpp/platform/platform_channel_server_endpoint.h"
namespace mojo {
PlatformChannelServerEndpoint::PlatformChannelServerEndpoint() = default;
PlatformChannelServerEndpoint::PlatformChannelServerEndpoint(
PlatformChannelServerEndpoint&& other) = default;
PlatformChannelServerEndpoint::PlatformChannelServerEndpoint(
PlatformHandle handle)
: handle_(std::move(handle)) {}
PlatformChannelServerEndpoint::~PlatformChannelServerEndpoint() = default;
PlatformChannelServerEndpoint& PlatformChannelServerEndpoint::operator=(
PlatformChannelServerEndpoint&& other) = default;
void PlatformChannelServerEndpoint::reset() {
handle_.reset();
}
PlatformChannelServerEndpoint PlatformChannelServerEndpoint::Clone() const {
return PlatformChannelServerEndpoint(handle_.Clone());
}
} // namespace mojo