| Index: device/nfc/nfc_adapter_factory.cc
|
| diff --git a/device/nfc/nfc_adapter_factory.cc b/device/nfc/nfc_adapter_factory.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9e04c44518ff7bcab5ea257312b0f1e074256ee9
|
| --- /dev/null
|
| +++ b/device/nfc/nfc_adapter_factory.cc
|
| @@ -0,0 +1,24 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "device/nfc/nfc_adapter_factory.h"
|
| +
|
| +#include "base/lazy_instance.h"
|
| +#include "base/memory/weak_ptr.h"
|
| +
|
| +namespace device {
|
| +
|
| +// static
|
| +bool NfcAdapterFactory::IsNfcAvailable() {
|
| + // TODO(armansito): Return true on supported platforms here.
|
| + return false;
|
| +}
|
| +
|
| +// static
|
| +void NfcAdapterFactory::GetAdapter(const AdapterCallback& /* callback */) {
|
| + // TODO(armansito): Create platform-specific implementation instances here.
|
| + // No platform currently supports NFC, so we never invoke the callback.
|
| +}
|
| +
|
| +} // namespace device
|
|
|