| 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 DEVICE_NFC_NFC_ADAPTER_CHROMEOS_H_ | 5 #ifndef DEVICE_NFC_NFC_ADAPTER_CHROMEOS_H_ |
| 6 #define DEVICE_NFC_NFC_ADAPTER_CHROMEOS_H_ | 6 #define DEVICE_NFC_NFC_ADAPTER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "chromeos/dbus/nfc_adapter_client.h" | 10 #include "chromeos/dbus/nfc_adapter_client.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Called by dbus:: on completion of the D-Bus method call to stop polling. | 91 // Called by dbus:: on completion of the D-Bus method call to stop polling. |
| 92 void OnStopPolling(const base::Closure& callback); | 92 void OnStopPolling(const base::Closure& callback); |
| 93 void OnStopPollingError(const ErrorCallback& error_callback, | 93 void OnStopPollingError(const ErrorCallback& error_callback, |
| 94 const std::string& error_name, | 94 const std::string& error_name, |
| 95 const std::string& error_message); | 95 const std::string& error_message); |
| 96 | 96 |
| 97 // Object path of the adapter that we are currently tracking. | 97 // Object path of the adapter that we are currently tracking. |
| 98 dbus::ObjectPath object_path_; | 98 dbus::ObjectPath object_path_; |
| 99 | 99 |
| 100 // List of observers interested in event notifications from us. | 100 // List of observers interested in event notifications from us. |
| 101 ObserverList<device::NfcAdapter::Observer> observers_; | 101 base::ObserverList<device::NfcAdapter::Observer> observers_; |
| 102 | 102 |
| 103 // Note: This should remain the last member so it'll be destroyed and | 103 // Note: This should remain the last member so it'll be destroyed and |
| 104 // invalidate its weak pointers before any other members are destroyed. | 104 // invalidate its weak pointers before any other members are destroyed. |
| 105 base::WeakPtrFactory<NfcAdapterChromeOS> weak_ptr_factory_; | 105 base::WeakPtrFactory<NfcAdapterChromeOS> weak_ptr_factory_; |
| 106 | 106 |
| 107 DISALLOW_COPY_AND_ASSIGN(NfcAdapterChromeOS); | 107 DISALLOW_COPY_AND_ASSIGN(NfcAdapterChromeOS); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } // namespace chromeos | 110 } // namespace chromeos |
| 111 | 111 |
| 112 #endif // DEVICE_NFC_NFC_ADAPTER_CHROMEOS_H_ | 112 #endif // DEVICE_NFC_NFC_ADAPTER_CHROMEOS_H_ |
| OLD | NEW |