| Index: third_party/WebKit/Source/modules/nfc/NFC.h
|
| diff --git a/third_party/WebKit/Source/modules/nfc/NFC.h b/third_party/WebKit/Source/modules/nfc/NFC.h
|
| index 9ffb2c7209e3d2fcb9d1f8574128f4cbb939723d..c9f1a4c837dac5547a989951101ec000bb9b0a46 100644
|
| --- a/third_party/WebKit/Source/modules/nfc/NFC.h
|
| +++ b/third_party/WebKit/Source/modules/nfc/NFC.h
|
| @@ -65,6 +65,10 @@ class NFC final : public GarbageCollectedFinalized<NFC>,
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| + // Returns boolean indicating whether NFC is supported in this context. If
|
| + // not, |error_message| gives a message indicating why not.
|
| + bool IsSupportedInContext(ExecutionContext*, String& error_message);
|
| +
|
| // Returns promise with DOMException if feature is not supported
|
| // or when context is not secure. Otherwise, returns empty promise.
|
| ScriptPromise RejectIfNotSupported(ScriptState*);
|
|
|