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

Unified Diff: services/resource_coordinator/coordination_unit/coordination_unit_manager.h

Issue 2938443002: [GRC] UKM Support (Closed)
Patch Set: Refactor 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/coordination_unit/coordination_unit_manager.h
diff --git a/services/resource_coordinator/coordination_unit/coordination_unit_manager.h b/services/resource_coordinator/coordination_unit/coordination_unit_manager.h
index 7d07f8bbdf5f2140bde0018f9d7a3bb46daa57d4..76f5242be44dd77b575c04c5d0466a006e50ef61 100644
--- a/services/resource_coordinator/coordination_unit/coordination_unit_manager.h
+++ b/services/resource_coordinator/coordination_unit/coordination_unit_manager.h
@@ -5,8 +5,16 @@
#ifndef SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_MANAGER_H_
#define SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_MANAGER_H_
+#include <memory>
+#include <vector>
+
#include "base/macros.h"
+namespace ukm {
+class MojoUkmRecorder;
+class UkmEntryBuilder;
+}
+
namespace service_manager {
class BinderRegistry;
class ServiceContextRefFactory;
@@ -25,8 +33,13 @@ class CoordinationUnitManager {
void OnStart(service_manager::BinderRegistry* registry,
service_manager::ServiceContextRefFactory* service_ref_factory);
+ void SetUkmRecorder(ukm::MojoUkmRecorder* ukm_recorder);
+ std::unique_ptr<ukm::UkmEntryBuilder> CreateUkmEntryBuilder(
+ const char* event_name);
private:
+ ukm::MojoUkmRecorder* ukm_recorder_;
oystein (OOO til 10th of July) 2017/06/22 20:27:02 = nullptr;
matthalp 2017/06/22 22:59:31 Done.
+
static void Create(
service_manager::ServiceContextRefFactory* service_ref_factory);

Powered by Google App Engine
This is Rietveld 408576698