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_NDEF_RECORD_H_ | 5 #ifndef DEVICE_NFC_NFC_NDEF_RECORD_H_ |
6 #define DEVICE_NFC_NFC_NDEF_RECORD_H_ | 6 #define DEVICE_NFC_NFC_NDEF_RECORD_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "base/macros.h" |
11 #include "base/values.h" | 12 #include "base/values.h" |
12 | 13 |
13 namespace device { | 14 namespace device { |
14 | 15 |
15 // NfcNdefRecord represents an NDEF (NFC Data Exchange Format) record. NDEF is | 16 // NfcNdefRecord represents an NDEF (NFC Data Exchange Format) record. NDEF is |
16 // a light-weight binary format specified by the NFC Forum for transmission and | 17 // a light-weight binary format specified by the NFC Forum for transmission and |
17 // storage of typed data over NFC. NDEF defines two constructs: NDEF records and | 18 // storage of typed data over NFC. NDEF defines two constructs: NDEF records and |
18 // messages. An NDEF record contains typed data, such as MIME-type media, a URI, | 19 // messages. An NDEF record contains typed data, such as MIME-type media, a URI, |
19 // or a custom application payload, whereas an NDEF message is a container for | 20 // or a custom application payload, whereas an NDEF message is a container for |
20 // one or more NDEF records. | 21 // one or more NDEF records. |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 private: | 159 private: |
159 // The NDEF records that are contained by this message. | 160 // The NDEF records that are contained by this message. |
160 RecordList records_; | 161 RecordList records_; |
161 | 162 |
162 DISALLOW_COPY_AND_ASSIGN(NfcNdefMessage); | 163 DISALLOW_COPY_AND_ASSIGN(NfcNdefMessage); |
163 }; | 164 }; |
164 | 165 |
165 } // namespace device | 166 } // namespace device |
166 | 167 |
167 #endif // DEVICE_NFC_NFC_NDEF_RECORD_H_ | 168 #endif // DEVICE_NFC_NFC_NDEF_RECORD_H_ |
OLD | NEW |