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

Unified Diff: services/resource_coordinator/coordination_unit_provider.h

Issue 2710823003: NOCOMMIT prototype: GRC service plumbing and process priority
Patch Set: Buildfixes Created 3 years, 9 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_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_

Powered by Google App Engine
This is Rietveld 408576698