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

Side by Side Diff: components/memory_coordinator/common/client_registry.cc

Issue 2144163002: Extract client handing from ChildMemoryCoordinatorImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mc-2-notify
Patch Set: rebase Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « components/memory_coordinator/common/client_registry.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « components/memory_coordinator/common/client_registry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698