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

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: Removed NfcAdapterFactory::MaybeGetAdapter. Created 7 years, 1 month 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
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

Powered by Google App Engine
This is Rietveld 408576698