blob: 7400faf1a5684f4775b2ce30a7eaa5028515161b [file] [log] [blame]
// Copyright 2022 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.
#ifndef IPCZ_SRC_IPCZ_SEQUENCE_NUMBER_H_
#define IPCZ_SRC_IPCZ_SEQUENCE_NUMBER_H_
#include <cstdint>
#include "util/strong_alias.h"
namespace ipcz {
// Used to number arbitrary objects in a sequence.
//
// More specifically this is used by ipcz to maintain relative ordering of
// parcels against other parcels from the same source portal, or NodeLink
// messages against other NodeLink messages from the same NodeLink endpoint.
using SequenceNumber = StrongAlias<class SequenceNumberTag, uint64_t>;
} // namespace ipcz
#endif // IPCZ_SRC_IPCZ_SEQUENCE_NUMBER_H_