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

Unified Diff: services/resource_coordinator/public/cpp/resource_coordinator_interface.h

Issue 2964103002: [GRC] Decouple Render Process CPU Measurement from CU Graph (Closed)
Patch Set: Rebase 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/public/cpp/resource_coordinator_interface.h
diff --git a/services/resource_coordinator/public/cpp/resource_coordinator_interface.h b/services/resource_coordinator/public/cpp/resource_coordinator_interface.h
index 72ae40ab31a6d97374116271a1c7c21f918bef80..05f450694d7b375c62c99e23c9930ee70a12930e 100644
--- a/services/resource_coordinator/public/cpp/resource_coordinator_interface.h
+++ b/services/resource_coordinator/public/cpp/resource_coordinator_interface.h
@@ -7,11 +7,13 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/thread_checker.h"
+#include "base/values.h"
#include "services/resource_coordinator/public/interfaces/coordination_unit.mojom.h"
namespace service_manager {
@@ -41,6 +43,10 @@ class SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_EXPORT
void SendEvent(const mojom::EventType& event_type);
void AddChild(const ResourceCoordinatorInterface& child);
void RemoveChild(const ResourceCoordinatorInterface& child);
+ void SetProperty(mojom::PropertyType property_type,
+ std::unique_ptr<base::Value> value);
+ void SetPropertyAndPropagate(mojom::PropertyType property_type,
+ std::unique_ptr<base::Value> value);
private:
void ConnectToService(service_manager::Connector* connector,

Powered by Google App Engine
This is Rietveld 408576698