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

Unified Diff: chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc

Issue 246883003: Introduce chrome.bluetoothSocket API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ambiguity of listen functions Created 6 years, 8 months 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: chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc
diff --git a/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc b/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..70ea515676866c4217695490e230c99cef4d2724
--- /dev/null
+++ b/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc
@@ -0,0 +1,83 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
rpaquay 2014/04/22 15:47:55 nit: Copyright 2014
keybuk 2014/04/24 11:46:45 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.h"
+
+namespace extensions {
+namespace api {
+
+bool BluetoothSocketCreateFunction::RunImpl() {
+ // TODO(keybuk): Implement.
+ SetError("Not yet implemented.");
+ return false;
+}
+
+bool BluetoothSocketUpdateFunction::RunImpl() {
+ // TODO(keybuk): Implement.
+ SetError("Not yet implemented.");
+ return false;
+}
+
+bool BluetoothSocketSetPausedFunction::RunImpl() {
+ // TODO(keybuk): Implement.
+ SetError("Not yet implemented.");
+ return false;
+}
+
+bool BluetoothSocketListenUsingRfcommFunction::RunImpl() {
+ // TODO(keybuk): Implement.
+ SetError("Not yet implemented.");
+ return false;
+}
+
+bool BluetoothSocketListenUsingInsecureRfcommFunction::RunImpl() {
+ // TODO(keybuk): Implement.
+ SetError("Not yet implemented.");
+ return false;
+}
+
+bool BluetoothSocketListenUsingL2capFunction::RunImpl() {
+ // TODO(keybuk): Implement.
+ SetError("Not yet implemented.");
+ return false;
+}
+
+bool BluetoothSocketConnectFunction::RunImpl() {
+ // TODO(keybuk): Implement.
+ SetError("Not yet implemented.");
+ return false;
+}
+
+bool BluetoothSocketDisconnectFunction::RunImpl() {
+ // TODO(keybuk): Implement.
+ SetError("Not yet implemented.");
+ return false;
+}
+
+bool BluetoothSocketCloseFunction::RunImpl() {
+ // TODO(keybuk): Implement.
+ SetError("Not yet implemented.");
+ return false;
+}
+
+bool BluetoothSocketSendFunction::RunImpl() {
+ // TODO(keybuk): Implement.
+ SetError("Not yet implemented.");
+ return false;
+}
+
+bool BluetoothSocketGetInfoFunction::RunImpl() {
+ // TODO(keybuk): Implement.
+ SetError("Not yet implemented.");
+ return false;
+}
+
+bool BluetoothSocketGetSocketsFunction::RunImpl() {
+ // TODO(keybuk): Implement.
+ SetError("Not yet implemented.");
+ return false;
+}
+
+} // namespace api
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698