| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_PROVID
ER_IMPL_H_ | |
| 6 #define SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_PROVID
ER_IMPL_H_ | |
| 7 | |
| 8 #include "mojo/public/cpp/bindings/interface_request.h" | |
| 9 #include "mojo/public/cpp/bindings/strong_binding.h" | |
| 10 #include "services/resource_coordinator/public/interfaces/coordination_unit_prov
ider.mojom.h" | |
| 11 | |
| 12 namespace service_manager { | |
| 13 | |
| 14 class ServiceContextRefFactory; | |
| 15 class ServiceContextRef; | |
| 16 | |
| 17 } // service_manager | |
| 18 | |
| 19 namespace resource_coordinator { | |
| 20 | |
| 21 class CoordinationUnitProviderImpl : public mojom::CoordinationUnitProvider { | |
| 22 public: | |
| 23 CoordinationUnitProviderImpl( | |
| 24 service_manager::ServiceContextRefFactory* service_ref_factory); | |
| 25 ~CoordinationUnitProviderImpl() override; | |
| 26 | |
| 27 static void Create( | |
| 28 service_manager::ServiceContextRefFactory* service_ref_factory, | |
| 29 resource_coordinator::mojom::CoordinationUnitProviderRequest request); | |
| 30 | |
| 31 // Overridden from mojom::CoordinationUnitProvider: | |
| 32 void CreateCoordinationUnit( | |
| 33 resource_coordinator::mojom::CoordinationUnitRequest request, | |
| 34 const CoordinationUnitID& id) override; | |
| 35 | |
| 36 private: | |
| 37 service_manager::ServiceContextRefFactory* service_ref_factory_; | |
| 38 std::unique_ptr<service_manager::ServiceContextRef> service_ref_; | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(CoordinationUnitProviderImpl); | |
| 41 }; | |
| 42 | |
| 43 } // namespace resource_coordinator | |
| 44 | |
| 45 #endif // SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_PRO
VIDER_IMPL_H_ | |
| OLD | NEW |