Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2636)

Unified Diff: device/nfc/nfc_adapter_factory.cc

Issue 77563002: nfc: Add native NFC API definitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed clang error. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/nfc/nfc_adapter_factory.h ('k') | device/nfc/nfc_ndef_record.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « device/nfc/nfc_adapter_factory.h ('k') | device/nfc/nfc_ndef_record.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698