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

Unified Diff: services/resource_coordinator/service_callbacks_impl.h

Issue 2938443002: [GRC] UKM Support (Closed)
Patch Set: Address reviewer feedback 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/service_callbacks_impl.h
diff --git a/services/resource_coordinator/service_callbacks_impl.h b/services/resource_coordinator/service_callbacks_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..936be694316ffd36e0eac4f7ccf97c599ca3f881
--- /dev/null
+++ b/services/resource_coordinator/service_callbacks_impl.h
@@ -0,0 +1,52 @@
+// 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_SERVICE_CALLBACKS_IMPL_H_
+#define SERVICES_RESOURCE_COORDINATOR_SERVICE_CALLBACKS_IMPL_H_
+
+#include <memory>
+
+#include "components/ukm/public/interfaces/ukm_interface.mojom.h"
+#include "mojo/public/cpp/bindings/interface_request.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+#include "services/resource_coordinator/public/interfaces/service_callbacks.mojom.h"
+#include "services/service_manager/public/cpp/bind_source_info.h"
+
+namespace service_manager {
+class ServiceContextRefFactory;
+class ServiceContextRef;
+} // namespace service_manager
+
+namespace resource_coordinator {
+
+class ResourceCoordinatorService;
+
+class ServiceCallbacksImpl : public mojom::ServiceCallbacks {
+ public:
+ ServiceCallbacksImpl(
+ service_manager::ServiceContextRefFactory* service_ref_factory,
+ ResourceCoordinatorService* resource_coordinator_service);
+ ~ServiceCallbacksImpl() override;
+
+ static void Create(
+ service_manager::ServiceContextRefFactory* service_ref_factory,
+ ResourceCoordinatorService* resource_coordinator_service,
+ const service_manager::BindSourceInfo& source_info,
+ resource_coordinator::mojom::ServiceCallbacksRequest request);
+
+ void IsUkmRecorderInterfaceInitialized(
+ const IsUkmRecorderInterfaceInitializedCallback& callback) override;
+ void SetUkmRecorderInterface(ukm::mojom::UkmRecorderInterfacePtr
+ ukm_recorder_interface_request) override;
+
+ private:
+ ResourceCoordinatorService* resource_coordinator_service_;
+ std::unique_ptr<service_manager::ServiceContextRef> service_ref_;
+
+ DISALLOW_COPY_AND_ASSIGN(ServiceCallbacksImpl);
+};
+
+} // namespace resource_coordinator
+
+#endif // SERVICES_RESOURCE_COORDINATOR_SERVICE_CALLBACKS_IMPL_H_
« no previous file with comments | « services/resource_coordinator/resource_coordinator_service.cc ('k') | services/resource_coordinator/service_callbacks_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698