| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "components/memory_coordinator/common/client_registry.h" | |
| 6 | |
| 7 namespace memory_coordinator { | |
| 8 | |
| 9 ClientRegistry::ClientRegistry() : clients_(new ClientList) {} | |
| 10 | |
| 11 ClientRegistry::~ClientRegistry() {} | |
| 12 | |
| 13 void ClientRegistry::RegisterClient(MemoryCoordinatorClient* client) { | |
| 14 clients_->AddObserver(client); | |
| 15 } | |
| 16 | |
| 17 void ClientRegistry::UnregisterClient(MemoryCoordinatorClient* client) { | |
| 18 clients_->RemoveObserver(client); | |
| 19 } | |
| 20 | |
| 21 } // namespace memory_coordinator | |
| OLD | NEW |