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

Side by Side Diff: chromeos/dbus/ap_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/amplifier_client.cc ('k') | chromeos/dbus/audio_dsp_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/ap_manager_client.h" 5 #include "chromeos/dbus/ap_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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 const std::string& property_name); 104 const std::string& property_name);
105 105
106 void OnObjectPathDBusMethod(const ObjectPathDBusMethodCallback& callback, 106 void OnObjectPathDBusMethod(const ObjectPathDBusMethodCallback& callback,
107 dbus::Response* response); 107 dbus::Response* response);
108 void OnStringDBusMethod(const StringDBusMethodCallback& callback, 108 void OnStringDBusMethod(const StringDBusMethodCallback& callback,
109 dbus::Response* response); 109 dbus::Response* response);
110 void OnVoidDBusMethod(const VoidDBusMethodCallback& callback, 110 void OnVoidDBusMethod(const VoidDBusMethodCallback& callback,
111 dbus::Response* response); 111 dbus::Response* response);
112 112
113 // List of observers interested in event notifications from us. 113 // List of observers interested in event notifications from us.
114 ObserverList<Observer> observers_; 114 base::ObserverList<Observer> observers_;
115 dbus::ObjectManager* object_manager_; 115 dbus::ObjectManager* object_manager_;
116 base::WeakPtrFactory<ApManagerClientImpl> weak_ptr_factory_; 116 base::WeakPtrFactory<ApManagerClientImpl> weak_ptr_factory_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(ApManagerClientImpl); 118 DISALLOW_COPY_AND_ASSIGN(ApManagerClientImpl);
119 }; 119 };
120 120
121 ApManagerClientImpl::ApManagerClientImpl() 121 ApManagerClientImpl::ApManagerClientImpl()
122 : object_manager_(nullptr), weak_ptr_factory_(this) { 122 : object_manager_(nullptr), weak_ptr_factory_(this) {
123 } 123 }
124 124
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 479
480 ApManagerClient::~ApManagerClient() { 480 ApManagerClient::~ApManagerClient() {
481 } 481 }
482 482
483 // static 483 // static
484 ApManagerClient* ApManagerClient::Create() { 484 ApManagerClient* ApManagerClient::Create() {
485 return new ApManagerClientImpl(); 485 return new ApManagerClientImpl();
486 } 486 }
487 487
488 } // namespace chromeos 488 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/amplifier_client.cc ('k') | chromeos/dbus/audio_dsp_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698