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

Unified Diff: services/resource_coordinator/resource_coordinator_service.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/resource_coordinator_service.h
diff --git a/services/resource_coordinator/resource_coordinator_service.h b/services/resource_coordinator/resource_coordinator_service.h
index 4246cb95234d22e629656d1254bb950598614bd2..a56fda5a0799844165c5b26492e692e148c30b9e 100644
--- a/services/resource_coordinator/resource_coordinator_service.h
+++ b/services/resource_coordinator/resource_coordinator_service.h
@@ -11,6 +11,7 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "components/ukm/public/mojo_ukm_recorder.h"
#include "services/resource_coordinator/coordination_unit/coordination_unit_manager.h"
#include "services/service_manager/public/cpp/binder_registry.h"
#include "services/service_manager/public/cpp/service.h"
@@ -33,10 +34,19 @@ class ResourceCoordinatorService : public service_manager::Service {
const std::string& interface_name,
mojo::ScopedMessagePipeHandle interface_pipe) override;
+ void SetUkmRecorder(std::unique_ptr<ukm::MojoUkmRecorder> ukm_recorder);
+
+ service_manager::BinderRegistry& registry() { return registry_; }
+ service_manager::ServiceContextRefFactory* ref_factory() {
+ return ref_factory_.get();
+ }
+ ukm::MojoUkmRecorder* ukm_recorder() { return ukm_recorder_.get(); }
+
private:
service_manager::BinderRegistry registry_;
std::unique_ptr<service_manager::ServiceContextRefFactory> ref_factory_;
CoordinationUnitManager coordination_unit_manager_;
+ std::unique_ptr<ukm::MojoUkmRecorder> ukm_recorder_;
// WeakPtrFactory members should always come last so WeakPtrs are destructed
// before other members.

Powered by Google App Engine
This is Rietveld 408576698