1// Copyright 2017 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5module device.mojom; 6 7import "services/device/public/mojom/nfc.mojom"; 8 9interface NFCProvider { 10 // Gets an NFC that is associated with |host_id|. |host_id| 11 // is used to obtain the Activity that this NFC instance should use on 12 // Android (see NFCDelegate.java). 13 GetNFCForHost(int32 host_id, NFC& nfc); 14 15 // Suspends all pending NFC operations. Could be used when web page 16 // visibility is lost. 17 SuspendNFCOperations(); 18 19 // Resumes all suspended NFC operations. 20 ResumeNFCOperations(); 21}; 22