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

Side by Side Diff: chromeos/dbus/peer_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/nfc_tag_client.cc ('k') | chromeos/dbus/power_manager_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/peer_daemon_manager_client.h" 5 #include "chromeos/dbus/peer_daemon_manager_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 dbus::Response* response); 83 dbus::Response* response);
84 void OnVoidDBusMethod(const VoidDBusMethodCallback& callback, 84 void OnVoidDBusMethod(const VoidDBusMethodCallback& callback,
85 dbus::Response* response); 85 dbus::Response* response);
86 void OnManagerPropertyChanged(const std::string& property_name); 86 void OnManagerPropertyChanged(const std::string& property_name);
87 void OnServicePropertyChanged(const dbus::ObjectPath& object_path, 87 void OnServicePropertyChanged(const dbus::ObjectPath& object_path,
88 const std::string& property_name); 88 const std::string& property_name);
89 void OnPeerPropertyChanged(const dbus::ObjectPath& object_path, 89 void OnPeerPropertyChanged(const dbus::ObjectPath& object_path,
90 const std::string& property_name); 90 const std::string& property_name);
91 91
92 // List of observers interested in event notifications from us. 92 // List of observers interested in event notifications from us.
93 ObserverList<Observer> observers_; 93 base::ObserverList<Observer> observers_;
94 dbus::ObjectManager* object_manager_; 94 dbus::ObjectManager* object_manager_;
95 95
96 base::WeakPtrFactory<PeerDaemonManagerClientImpl> weak_ptr_factory_; 96 base::WeakPtrFactory<PeerDaemonManagerClientImpl> weak_ptr_factory_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(PeerDaemonManagerClientImpl); 98 DISALLOW_COPY_AND_ASSIGN(PeerDaemonManagerClientImpl);
99 }; 99 };
100 100
101 PeerDaemonManagerClientImpl::PeerDaemonManagerClientImpl() 101 PeerDaemonManagerClientImpl::PeerDaemonManagerClientImpl()
102 : object_manager_(nullptr), weak_ptr_factory_(this) { 102 : object_manager_(nullptr), weak_ptr_factory_(this) {
103 } 103 }
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 417
418 PeerDaemonManagerClient::~PeerDaemonManagerClient() { 418 PeerDaemonManagerClient::~PeerDaemonManagerClient() {
419 } 419 }
420 420
421 // static 421 // static
422 PeerDaemonManagerClient* PeerDaemonManagerClient::Create() { 422 PeerDaemonManagerClient* PeerDaemonManagerClient::Create() {
423 return new PeerDaemonManagerClientImpl(); 423 return new PeerDaemonManagerClientImpl();
424 } 424 }
425 425
426 } // namespace chromeos 426 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/nfc_tag_client.cc ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698