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_PEER_CHROMEOS_H_ | 5 #ifndef DEVICE_NFC_NFC_PEER_CHROMEOS_H_ |
6 #define DEVICE_NFC_NFC_PEER_CHROMEOS_H_ | 6 #define DEVICE_NFC_NFC_PEER_CHROMEOS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
11 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
12 #include "chromeos/dbus/nfc_record_client.h" | 13 #include "chromeos/dbus/nfc_record_client.h" |
13 #include "dbus/object_path.h" | 14 #include "dbus/object_path.h" |
14 #include "device/nfc/nfc_ndef_record.h" | 15 #include "device/nfc/nfc_ndef_record.h" |
15 #include "device/nfc/nfc_peer.h" | 16 #include "device/nfc/nfc_peer.h" |
16 | 17 |
17 namespace chromeos { | 18 namespace chromeos { |
18 | 19 |
19 // The NfcPeerChromeOS class implements NfcPeer for the Chrome OS platform. | 20 // The NfcPeerChromeOS class implements NfcPeer for the Chrome OS platform. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // Note: This should remain the last member so it'll be destroyed and | 72 // Note: This should remain the last member so it'll be destroyed and |
72 // invalidate its weak pointers before any other members are destroyed. | 73 // invalidate its weak pointers before any other members are destroyed. |
73 base::WeakPtrFactory<NfcPeerChromeOS> weak_ptr_factory_; | 74 base::WeakPtrFactory<NfcPeerChromeOS> weak_ptr_factory_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(NfcPeerChromeOS); | 76 DISALLOW_COPY_AND_ASSIGN(NfcPeerChromeOS); |
76 }; | 77 }; |
77 | 78 |
78 } // namespace chromeos | 79 } // namespace chromeos |
79 | 80 |
80 #endif // DEVICE_NFC_NFC_PEER_CHROMEOS_H_ | 81 #endif // DEVICE_NFC_NFC_PEER_CHROMEOS_H_ |
OLD | NEW |