Index: services/resource_coordinator/coordination_unit/coordination_unit_factory.h |
diff --git a/services/resource_coordinator/coordination_unit/coordination_unit_factory.h b/services/resource_coordinator/coordination_unit/coordination_unit_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1d3a7640d324ea39569cea0b808e03a48e83a5c3 |
--- /dev/null |
+++ b/services/resource_coordinator/coordination_unit/coordination_unit_factory.h |
@@ -0,0 +1,32 @@ |
+// 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_FACTORY_H_ |
+#define SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_FACTORY_H_ |
+ |
+#include "services/resource_coordinator/coordination_unit/coordination_unit_impl.h" |
+ |
+namespace service_manager { |
+ |
oystein (OOO til 10th of July)
2017/05/17 23:06:06
nit: remove blank line
matthalp
2017/05/18 16:13:45
Done.
|
+class ServiceContextRefFactory; |
+ |
oystein (OOO til 10th of July)
2017/05/17 23:06:06
nit: remove blank line
matthalp
2017/05/18 16:13:45
Done.
|
+} // service_manager |
oystein (OOO til 10th of July)
2017/05/17 23:06:05
no need for the // service_manager comment when yo
matthalp
2017/05/18 16:13:45
Done.
|
+ |
+namespace resource_coordinator { |
+ |
+struct CoordinationUnitID; |
+ |
+class CoordinationUnitFactory { |
oystein (OOO til 10th of July)
2017/05/17 23:06:05
Since we're wrapped in a namespace here anyway and
matthalp
2017/05/18 16:13:45
Done.
|
+ public: |
+ static std::unique_ptr<CoordinationUnitImpl> CreateCoordinationUnit( |
+ const CoordinationUnitID& id, |
+ service_manager::ServiceContextRefFactory* service_ref_factory); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(CoordinationUnitFactory); |
oystein (OOO til 10th of July)
2017/05/17 23:06:05
nit: should include "base/macros.h" for this, for
matthalp
2017/05/18 16:13:45
N/A since this is no longer a class as the code is
|
+}; |
+ |
+} // namespace resource_coordinator |
+ |
+#endif // SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_FACTORY_H_ |