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

Unified Diff: services/resource_coordinator/coordination_unit/coordination_unit_manager.h

Issue 2914003002: [GRC] Coordination Unit Manager Modularization (Closed)
Patch Set: Add CoordinationUnitManager comment Created 3 years, 6 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/coordination_unit/coordination_unit_manager.h
diff --git a/services/resource_coordinator/coordination_unit/coordination_unit_manager.h b/services/resource_coordinator/coordination_unit/coordination_unit_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..7d07f8bbdf5f2140bde0018f9d7a3bb46daa57d4
--- /dev/null
+++ b/services/resource_coordinator/coordination_unit/coordination_unit_manager.h
@@ -0,0 +1,38 @@
+// 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_COORDINATION_UNIT_COORDINATION_UNIT_MANAGER_H_
+#define SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_MANAGER_H_
+
+#include "base/macros.h"
+
+namespace service_manager {
+class BinderRegistry;
+class ServiceContextRefFactory;
+} // service_manager
+
+namespace resource_coordinator {
+
+// The CoordinationUnitManager is a singleton that encapsulates all
+// aspects of Coordination Units within the ResourceCoordinatorService.
+// All functionality for dealing with CoordinationUnits should be contained
+// within this class or classes that are owned by it
+class CoordinationUnitManager {
+ public:
+ CoordinationUnitManager();
+ ~CoordinationUnitManager();
+
+ void OnStart(service_manager::BinderRegistry* registry,
+ service_manager::ServiceContextRefFactory* service_ref_factory);
+
+ private:
+ static void Create(
lpy 2017/06/16 20:17:07 Why is it declared only?
matthalp 2017/06/16 20:44:43 Thank you for catching this. There is no need for
+ service_manager::ServiceContextRefFactory* service_ref_factory);
+
+ DISALLOW_COPY_AND_ASSIGN(CoordinationUnitManager);
+};
+
+} // namespace resource_coordinator
+
+#endif // SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698