OLD | NEW |
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_RECORD_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_NFC_RECORD_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_NFC_RECORD_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_NFC_RECORD_CLIENT_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 const std::string& property_name); | 68 const std::string& property_name); |
69 | 69 |
70 // Called by Properties* structures when GetAll is called. | 70 // Called by Properties* structures when GetAll is called. |
71 void OnPropertiesReceived(const dbus::ObjectPath& object_path); | 71 void OnPropertiesReceived(const dbus::ObjectPath& object_path); |
72 | 72 |
73 // If true, the records are currently visible. | 73 // If true, the records are currently visible. |
74 bool device_records_visible_; | 74 bool device_records_visible_; |
75 bool tag_records_visible_; | 75 bool tag_records_visible_; |
76 | 76 |
77 // List of observers interested in event notifications from us. | 77 // List of observers interested in event notifications from us. |
78 ObserverList<Observer> observers_; | 78 base::ObserverList<Observer> observers_; |
79 | 79 |
80 // Fake properties that are returned for the fake records. | 80 // Fake properties that are returned for the fake records. |
81 scoped_ptr<Properties> device_smart_poster_record_properties_; | 81 scoped_ptr<Properties> device_smart_poster_record_properties_; |
82 scoped_ptr<Properties> device_text_record_properties_; | 82 scoped_ptr<Properties> device_text_record_properties_; |
83 scoped_ptr<Properties> device_uri_record_properties_; | 83 scoped_ptr<Properties> device_uri_record_properties_; |
84 scoped_ptr<Properties> tag_record_properties_; | 84 scoped_ptr<Properties> tag_record_properties_; |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(FakeNfcRecordClient); | 86 DISALLOW_COPY_AND_ASSIGN(FakeNfcRecordClient); |
87 }; | 87 }; |
88 | 88 |
89 } // namespace chromeos | 89 } // namespace chromeos |
90 | 90 |
91 #endif // CHROMEOS_DBUS_FAKE_NFC_RECORD_CLIENT_H_ | 91 #endif // CHROMEOS_DBUS_FAKE_NFC_RECORD_CLIENT_H_ |
OLD | NEW |