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

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

Issue 2929883002: [GRC] ResourceCoordinatorInterface support to remove children (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/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 6460dc264d0d04d8dcd0f824cf485398b430992a..72ae40ab31a6d97374116271a1c7c21f918bef80 100644
--- a/services/resource_coordinator/public/cpp/resource_coordinator_interface.h
+++ b/services/resource_coordinator/public/cpp/resource_coordinator_interface.h
@@ -7,6 +7,8 @@
#include <stdint.h>
+#include <string>
+
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/thread_checker.h"
@@ -38,11 +40,13 @@ class SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_EXPORT
void SendEvent(const mojom::EventType& event_type);
void AddChild(const ResourceCoordinatorInterface& child);
+ void RemoveChild(const ResourceCoordinatorInterface& child);
private:
void ConnectToService(service_manager::Connector* connector,
const CoordinationUnitID& cu_id);
void AddChildByID(const CoordinationUnitID& child_id);
+ void RemoveChildByID(const CoordinationUnitID& child_id);
mojom::CoordinationUnitPtr service_;

Powered by Google App Engine
This is Rietveld 408576698