[webnfc] Combine 'opaque' and 'json' types as 'mime' for TNF_MIME_MEDIA
Before, we have both 'opaque' and 'json' NDEFRecord for reading/writing TNF_MIME_MEDIA records, and we just serialize the JSON object provided by users to get the payload bytes for the 'json' NDEFRecord. Now with the goal of making web nfc more of a low level API, this CL unifies them as a new 'mime' type that serves for reading/writing TNF_MIME_MEDIA records. TNF_MIME_MEDIA <---> 'mime' type NDEFRecord The spec change: https://github.com/w3c/web-nfc/pull/373 BUG=520391 Change-Id: If4052c70e48100185e72cb07da8363f5de92b4b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1896154Reviewed-by:Reilly Grant <reillyg@chromium.org> Commit-Queue: Leon Han <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#712409}
Showing
Please register or sign in to comment