OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "device/bluetooth/bluetooth_profile.h" | |
6 | |
7 #include <string> | |
8 | |
9 namespace device { | |
10 | |
11 BluetoothProfile::BluetoothProfile() { | |
12 | |
13 } | |
14 | |
15 BluetoothProfile::~BluetoothProfile() { | |
16 | |
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
| |
17 } | |
18 | |
19 | |
20 // static | |
21 void BluetoothProfile::Register(const std::string& uuid, | |
22 const ProfileCallback& callback) { | |
23 // TODO(keybuk): Implement selection of the appropriate BluetoothProfile | |
24 // 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
| |
25 callback.Run(NULL); | |
26 } | |
27 | |
28 | |
29 } // namespace device | |
OLD | NEW |