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

Side by Side Diff: chromeos/dbus/fake_nfc_adapter_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_cras_audio_client.h ('k') | chromeos/dbus/fake_nfc_device_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_ADAPTER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_NFC_ADAPTER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_NFC_ADAPTER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_NFC_ADAPTER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // feature development based on fake classes, can be disabled to allow manual 83 // feature development based on fake classes, can be disabled to allow manual
84 // control for unit tests. 84 // control for unit tests.
85 void EnablePairingOnPoll(bool enabled); 85 void EnablePairingOnPoll(bool enabled);
86 86
87 private: 87 private:
88 // Property changed callback passed when we create Properties* structures. 88 // Property changed callback passed when we create Properties* structures.
89 void OnPropertyChanged(const dbus::ObjectPath& object_path, 89 void OnPropertyChanged(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 94
95 // Fake properties that are returned for the emulated adapters. 95 // Fake properties that are returned for the emulated adapters.
96 scoped_ptr<Properties> properties_; 96 scoped_ptr<Properties> properties_;
97 scoped_ptr<Properties> second_properties_; 97 scoped_ptr<Properties> second_properties_;
98 98
99 // Whether the adapter and second adapter are present or not. 99 // Whether the adapter and second adapter are present or not.
100 bool present_; 100 bool present_;
101 bool second_present_; 101 bool second_present_;
102 102
103 // If true, a pairing simulation is initiated on a successful call to 103 // If true, a pairing simulation is initiated on a successful call to
104 // StartPollLoop(). 104 // StartPollLoop().
105 bool start_pairing_on_poll_; 105 bool start_pairing_on_poll_;
106 106
107 // If true, device pairing will be simulated on the next call to 107 // If true, device pairing will be simulated on the next call to
108 // StartPollLoop. Otherwise, tag pairing will be simulated. 108 // StartPollLoop. Otherwise, tag pairing will be simulated.
109 bool device_pairing_; 109 bool device_pairing_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(FakeNfcAdapterClient); 111 DISALLOW_COPY_AND_ASSIGN(FakeNfcAdapterClient);
112 }; 112 };
113 113
114 } // namespace chromeos 114 } // namespace chromeos
115 115
116 #endif // CHROMEOS_DBUS_FAKE_NFC_ADAPTER_CLIENT_H_ 116 #endif // CHROMEOS_DBUS_FAKE_NFC_ADAPTER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_cras_audio_client.h ('k') | chromeos/dbus/fake_nfc_device_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698