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

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

Issue 2798713002: Global Resource Coordinator: Basic service internals (Closed)
Patch Set: Review fixes 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_types.h
diff --git a/services/resource_coordinator/public/cpp/coordination_unit_types.h b/services/resource_coordinator/public/cpp/coordination_unit_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..2a2e55a992086fc7f0fd65775479adfe8873c193
--- /dev/null
+++ b/services/resource_coordinator/public/cpp/coordination_unit_types.h
@@ -0,0 +1,23 @@
+// 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_TYPES_H_
+#define SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_TYPES_H_
+
+namespace resource_coordinator {
+
+// Do not assign values to these enum elements as the IPC macros in
+// coordination_unit_struct_traits.h relies on NUM_TYPES-1 being the
+// last valid element.
+enum class CoordinationUnitType : uint8_t {
+ INVALID_TYPE,
+ WEBCONTENTS,
+ FRAME,
+ NAVIGATION,
+ PROCESS,
+ NUM_TYPES
+};
+
+} // resource_coordinator
+
+#endif // SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698