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

Side by Side Diff: chromeos/dbus/fake_nfc_manager_client.h

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_nfc_device_client.h ('k') | chromeos/dbus/fake_nfc_record_client.h » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef CHROMEOS_DBUS_FAKE_NFC_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_NFC_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_NFC_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_NFC_MANAGER_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void RemoveAdapter(const std::string& adapter_path); 45 void RemoveAdapter(const std::string& adapter_path);
46 46
47 // Default path of an adapter that is simulated for testing. 47 // Default path of an adapter that is simulated for testing.
48 static const char kDefaultAdapterPath[]; 48 static const char kDefaultAdapterPath[];
49 49
50 private: 50 private:
51 // Property callback passed when we create Properties* structures. 51 // Property callback passed when we create Properties* structures.
52 void OnPropertyChanged(const std::string& property_name); 52 void OnPropertyChanged(const std::string& property_name);
53 53
54 // List of observers interested in event notifications. 54 // List of observers interested in event notifications.
55 ObserverList<Observer> observers_; 55 base::ObserverList<Observer> observers_;
56 56
57 // Set containing the currently simulated adapters. 57 // Set containing the currently simulated adapters.
58 std::set<dbus::ObjectPath> adapters_; 58 std::set<dbus::ObjectPath> adapters_;
59 59
60 // Fake properties object. This gets updated whenever AddAdapter or 60 // Fake properties object. This gets updated whenever AddAdapter or
61 // RemoveAdapter gets called. 61 // RemoveAdapter gets called.
62 scoped_ptr<Properties> properties_; 62 scoped_ptr<Properties> properties_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(FakeNfcManagerClient); 64 DISALLOW_COPY_AND_ASSIGN(FakeNfcManagerClient);
65 }; 65 };
66 66
67 } // namespace chromeos 67 } // namespace chromeos
68 68
69 #endif // CHROMEOS_DBUS_FAKE_NFC_MANAGER_CLIENT_H_ 69 #endif // CHROMEOS_DBUS_FAKE_NFC_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_nfc_device_client.h ('k') | chromeos/dbus/fake_nfc_record_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698