OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 #include "content/browser/android/nfc_host.h" | 5 #include "content/browser/android/nfc_host.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
10 #include "content/public/browser/android/content_view_core.h" | 10 #include "content/public/browser/android/content_view_core.h" |
11 #include "content/public/common/service_manager_connection.h" | 11 #include "content/public/common/service_manager_connection.h" |
12 #include "device/nfc/nfc.mojom.h" | |
13 #include "jni/NfcHost_jni.h" | 12 #include "jni/NfcHost_jni.h" |
14 #include "services/device/public/interfaces/constants.mojom.h" | 13 #include "services/device/public/interfaces/constants.mojom.h" |
| 14 #include "services/device/public/interfaces/nfc.mojom.h" |
15 #include "services/service_manager/public/cpp/connector.h" | 15 #include "services/service_manager/public/cpp/connector.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 base::StaticAtomicSequenceNumber g_unique_id; | 21 base::StaticAtomicSequenceNumber g_unique_id; |
22 | 22 |
23 } // namespace | 23 } // namespace |
24 | 24 |
(...skipping 15 matching lines...) Expand all Loading... |
40 } | 40 } |
41 | 41 |
42 void NFCHost::GetNFC(device::nfc::mojom::NFCRequest request) { | 42 void NFCHost::GetNFC(device::nfc::mojom::NFCRequest request) { |
43 // Connect to an NFC object, associating it with |id_|. | 43 // Connect to an NFC object, associating it with |id_|. |
44 nfc_provider_->GetNFCForHost(id_, std::move(request)); | 44 nfc_provider_->GetNFCForHost(id_, std::move(request)); |
45 } | 45 } |
46 | 46 |
47 NFCHost::~NFCHost() {} | 47 NFCHost::~NFCHost() {} |
48 | 48 |
49 } // namespace content | 49 } // namespace content |
OLD | NEW |