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

Side by Side Diff: chromeos/dbus/leadership_daemon_manager_client.cc

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « chromeos/dbus/fake_update_engine_client.h ('k') | chromeos/dbus/metronome_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/dbus/leadership_daemon_manager_client.h" 5 #include "chromeos/dbus/leadership_daemon_manager_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const std::string& property_name); 86 const std::string& property_name);
87 87
88 void OnObjectPathDBusMethod(const ObjectPathDBusMethodCallback& callback, 88 void OnObjectPathDBusMethod(const ObjectPathDBusMethodCallback& callback,
89 dbus::Response* response); 89 dbus::Response* response);
90 void OnStringDBusMethod(const StringDBusMethodCallback& callback, 90 void OnStringDBusMethod(const StringDBusMethodCallback& callback,
91 dbus::Response* response); 91 dbus::Response* response);
92 void OnVoidDBusMethod(const VoidDBusMethodCallback& callback, 92 void OnVoidDBusMethod(const VoidDBusMethodCallback& callback,
93 dbus::Response* response); 93 dbus::Response* response);
94 94
95 // List of observers interested in event notifications from us. 95 // List of observers interested in event notifications from us.
96 ObserverList<Observer> observers_; 96 base::ObserverList<Observer> observers_;
97 dbus::ObjectManager* object_manager_; 97 dbus::ObjectManager* object_manager_;
98 base::WeakPtrFactory<LeadershipDaemonManagerClientImpl> weak_ptr_factory_; 98 base::WeakPtrFactory<LeadershipDaemonManagerClientImpl> weak_ptr_factory_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(LeadershipDaemonManagerClientImpl); 100 DISALLOW_COPY_AND_ASSIGN(LeadershipDaemonManagerClientImpl);
101 }; 101 };
102 102
103 LeadershipDaemonManagerClientImpl::LeadershipDaemonManagerClientImpl() 103 LeadershipDaemonManagerClientImpl::LeadershipDaemonManagerClientImpl()
104 : object_manager_(nullptr), weak_ptr_factory_(this) { 104 : object_manager_(nullptr), weak_ptr_factory_(this) {
105 } 105 }
106 106
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 383
384 LeadershipDaemonManagerClient::~LeadershipDaemonManagerClient() { 384 LeadershipDaemonManagerClient::~LeadershipDaemonManagerClient() {
385 } 385 }
386 386
387 // static 387 // static
388 LeadershipDaemonManagerClient* LeadershipDaemonManagerClient::Create() { 388 LeadershipDaemonManagerClient* LeadershipDaemonManagerClient::Create() {
389 return new LeadershipDaemonManagerClientImpl(); 389 return new LeadershipDaemonManagerClientImpl();
390 } 390 }
391 391
392 } // namespace chromeos 392 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_update_engine_client.h ('k') | chromeos/dbus/metronome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698