Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Unified Diff: device/nfc/nfc.mojom

Issue 2524743002: [webnfc] Restrict NFC message size to 32KB (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/nfc/nfc.mojom
diff --git a/device/nfc/nfc.mojom b/device/nfc/nfc.mojom
index 413be2e4f8e6e9fb8a1dbe72686b8264ab9fd055..3f344a157880b732438186dc4388da813104fc60 100644
--- a/device/nfc/nfc.mojom
+++ b/device/nfc/nfc.mojom
@@ -66,6 +66,9 @@ struct NFCMessage {
// path. It represents Web NFC id, that can be used for matching Web NFC
// content with the filter specified by |url| field in NFCWatchOptions.
string? url;
+
+ // Maximum size of NFC message that can be sent over IPC is 32KB.
+ const uint32 kMaxSize = 32768;
};
struct NFCPushOptions {
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/nfc/push.html » ('j') | third_party/WebKit/Source/modules/nfc/NFC.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698