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..c57946f8de77413aa5822bf6267996984d9477fa |
--- /dev/null |
+++ b/device/nfc/nfc_adapter_factory.cc |
@@ -0,0 +1,23 @@ |
+// 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. |
+} |
keybuk
2013/12/03 01:35:49
nit: extra newline after this
armansito
2013/12/03 02:43:06
Done.
|
+} // namespace device |