blob: f7097fe5f4334d5ba4c235ae6cd0facb3d82419e [file] [log] [blame]
// Copyright 2016 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/edk/system/handle.h"
#include <utility>
#include "mojo/edk/system/dispatcher.h"
using mojo::util::RefPtr;
namespace mojo {
namespace system {
Handle::Handle() : rights(MOJO_HANDLE_RIGHT_NONE) {}
Handle::Handle(const Handle&) = default;
Handle::Handle(Handle&&) = default;
Handle::Handle(RefPtr<Dispatcher>&& dispatcher, MojoHandleRights rights)
: dispatcher(std::move(dispatcher)), rights(rights) {}
Handle::~Handle() {}
Handle& Handle::operator=(const Handle&) = default;
Handle& Handle::operator=(Handle&&) = default;
} // namespace system
} // namespace mojo