// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IPCZ_SRC_IPCZ_ROUTER_DESCRIPTOR_H_ #define IPCZ_SRC_IPCZ_ROUTER_DESCRIPTOR_H_ #include <type_traits> #include "ipcz/fragment_descriptor.h" #include "ipcz/ipcz.h" #include "ipcz/node_name.h" #include "ipcz/sequence_number.h" #include "ipcz/sublink_id.h" namespace ipcz { // Serialized representation of a Router sent in a parcel. When a portal is // transferred to a new node, we use this structure to serialize a description // of the new Router that will back the portal at its new location. This new // router is an inward peer of the portal's previous router on the sending node. // // NOTE: This is a wire structure and must remain backwards-compatible across // changes. struct IPCZ_ALIGN(8) RouterDescriptor { … }; static_assert …; } // namespace ipcz #endif // IPCZ_SRC_IPCZ_ROUTER_DESCRIPTOR_H_