Index: device/bluetooth/bluetooth_profile.cc |
diff --git a/device/bluetooth/bluetooth_profile.cc b/device/bluetooth/bluetooth_profile.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d4952951f229d9d7d61b408eb666b62729c8023d |
--- /dev/null |
+++ b/device/bluetooth/bluetooth_profile.cc |
@@ -0,0 +1,29 @@ |
+// 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/bluetooth/bluetooth_profile.h" |
+ |
+#include <string> |
+ |
+namespace device { |
+ |
+BluetoothProfile::BluetoothProfile() { |
+ |
+} |
+ |
+BluetoothProfile::~BluetoothProfile() { |
+ |
youngki
2013/04/11 18:33:41
How about calling Unregister() in the destructor?
keybuk
2013/04/17 22:38:35
The intent is that Unregister() *calls* the destru
|
+} |
+ |
+ |
+// static |
+void BluetoothProfile::Register(const std::string& uuid, |
+ const ProfileCallback& callback) { |
+ // TODO(keybuk): Implement selection of the appropriate BluetoothProfile |
+ // subclass just like BluetoothAdapterFactory |
youngki
2013/04/10 16:38:19
Are we going to follow the similar structure as Bl
keybuk
2013/04/17 22:38:35
As discussed, No; it should be entirely okay to de
|
+ callback.Run(NULL); |
+} |
+ |
+ |
+} // namespace device |