Index: services/resource_coordinator/public/cpp/coordination_unit_events.h |
diff --git a/services/resource_coordinator/public/cpp/coordination_unit_events.h b/services/resource_coordinator/public/cpp/coordination_unit_events.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f9555c584ca81d677f9ae1857f281e8d29d435b3 |
--- /dev/null |
+++ b/services/resource_coordinator/public/cpp/coordination_unit_events.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_EVENTS_H_ |
+#define SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_COORDINATION_UNIT_EVENTS_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_EVENTS-1 being the |
+// last valid element. |
+enum class EventType : uint32_t { |
+ INVALID_EVENT, |
+ TEST_EVENT, |
+ ON_COMMIT, |
+ ON_WEBCONTENTS_SHOWN, |
+ ON_WEBCONTENTS_HIDDEN, |
+ ON_RENDERER_FRAME_CREATED, |
+ ON_PROCESS_AUDIO_STARTED, |
+ ON_PROCESS_AUDIO_STOPPED, |
+ NUM_EVENTS |
+}; |
+ |
+} // resource_coordinator |
+ |
+#endif // SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_COORDINATION_UNIT_EVENTS_H_ |