Index: services/resource_coordinator/coordination_unit_provider.h |
diff --git a/services/resource_coordinator/coordination_unit_provider.h b/services/resource_coordinator/coordination_unit_provider.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..555f1a6ba787dae3d6f01fc617112295e901b535 |
--- /dev/null |
+++ b/services/resource_coordinator/coordination_unit_provider.h |
@@ -0,0 +1,37 @@ |
+// 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_PROVIDER_H_ |
+#define SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_PROVIDER_H_ |
+ |
+#include "mojo/public/cpp/bindings/interface_request.h" |
+#include "mojo/public/cpp/bindings/strong_binding.h" |
+#include "services/resource_coordinator/public/interfaces/coordination_unit_provider.mojom.h" |
+#include "services/service_manager/public/cpp/connection.h" |
+ |
+namespace resource_coordinator { |
+ |
+class CoordinationUnitProvider : public mojom::CoordinationUnitProvider { |
+ public: |
+ CoordinationUnitProvider(); |
+ ~CoordinationUnitProvider() override; |
+ |
+ static void Create( |
+ resource_coordinator::mojom::CoordinationUnitProviderRequest request) { |
+ mojo::MakeStrongBinding(base::MakeUnique<CoordinationUnitProvider>(), |
+ std::move(request)); |
+ } |
+ |
+ // Overridden from mojom::CoordinationUnitProvider: |
+ void CreateCoordinationUnit( |
+ resource_coordinator::mojom::CoordinationUnitRequest request, |
+ resource_coordinator::mojom::CoordinationUnitIDPtr options) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(CoordinationUnitProvider); |
+}; |
+ |
+} // namespace resource_coordinator |
+ |
+#endif // SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_PROVIDER_H_ |