Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Unified Diff: services/resource_coordinator/public/cpp/coordination_unit_struct_traits.h

Issue 2798713002: Global Resource Coordinator: Basic service internals (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698