| Index: services/resource_coordinator/public/cpp/coordination_unit_struct_traits.h
|
| diff --git a/services/resource_coordinator/public/cpp/coordination_unit_struct_traits.h b/services/resource_coordinator/public/cpp/coordination_unit_struct_traits.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7d81b24acac19bd2e13cb88e7a0d88a1bff527d7
|
| --- /dev/null
|
| +++ b/services/resource_coordinator/public/cpp/coordination_unit_struct_traits.h
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2017 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 SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_COORDINATION_UNIT_STRUCT_TRAITS_H_
|
| +#define SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_COORDINATION_UNIT_STRUCT_TRAITS_H_
|
| +
|
| +#include "ipc/ipc_message_macros.h"
|
| +#include "ipc/param_traits_macros.h"
|
| +#include "services/resource_coordinator/public/cpp/coordination_unit_events.h"
|
| +#include "services/resource_coordinator/public/interfaces/coordination_unit.mojom.h"
|
| +
|
| +IPC_ENUM_TRAITS_MIN_MAX_VALUE(resource_coordinator::EventType,
|
| + resource_coordinator::INVALID_EVENT,
|
| + resource_coordinator::NUM_EVENTS - 1)
|
| +
|
| +IPC_ENUM_TRAITS_MIN_MAX_VALUE(resource_coordinator::CoordinationUnitType,
|
| + resource_coordinator::INVALID_TYPE,
|
| + resource_coordinator::NUM_TYPES - 1)
|
| +
|
| +IPC_STRUCT_TRAITS_BEGIN(resource_coordinator::CoordinationUnitID)
|
| + IPC_STRUCT_TRAITS_MEMBER(type)
|
| + IPC_STRUCT_TRAITS_MEMBER(id)
|
| +IPC_STRUCT_TRAITS_END()
|
| +
|
| +#endif // SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_COORDINATION_UNIT_STRUCT_TRAITS_H_
|
|
|