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

Side by Side Diff: device/bluetooth/bluetooth_profile_mac.h

Issue 220323004: device/bluetooth: Rename device::bluetooth_utils::UUID to device::BluetoothUUID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialized |empty_device_| in BluetoothDeviceWinTest. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_MAC_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "device/bluetooth/bluetooth_profile.h" 12 #include "device/bluetooth/bluetooth_profile.h"
13 #include "device/bluetooth/bluetooth_uuid.h"
13 14
14 #ifdef __OBJC__ 15 #ifdef __OBJC__
15 @class IOBluetoothDevice; 16 @class IOBluetoothDevice;
16 #else 17 #else
17 class IOBluetoothDevice; 18 class IOBluetoothDevice;
18 #endif 19 #endif
19 20
20 namespace device { 21 namespace device {
21 22
22 class BluetoothProfileMac : public BluetoothProfile { 23 class BluetoothProfileMac : public BluetoothProfile {
23 public: 24 public:
24 // BluetoothProfile override. 25 // BluetoothProfile override.
25 virtual void Unregister() OVERRIDE; 26 virtual void Unregister() OVERRIDE;
26 virtual void SetConnectionCallback( 27 virtual void SetConnectionCallback(
27 const ConnectionCallback& callback) OVERRIDE; 28 const ConnectionCallback& callback) OVERRIDE;
28 29
29 // Makes an outgoing connection to |device|. 30 // Makes an outgoing connection to |device|.
30 // This method runs |socket_callback_| with the socket and returns true if the 31 // This method runs |socket_callback_| with the socket and returns true if the
31 // connection is made successfully. 32 // connection is made successfully.
32 bool Connect(IOBluetoothDevice* device); 33 bool Connect(IOBluetoothDevice* device);
33 34
34 private: 35 private:
35 friend BluetoothProfile; 36 friend BluetoothProfile;
36 37
37 BluetoothProfileMac(const std::string& uuid, const std::string& name); 38 BluetoothProfileMac(const BluetoothUUID& uuid, const std::string& name);
38 virtual ~BluetoothProfileMac(); 39 virtual ~BluetoothProfileMac();
39 40
40 const std::string uuid_; 41 const BluetoothUUID uuid_;
41 const std::string name_; 42 const std::string name_;
42 ConnectionCallback connection_callback_; 43 ConnectionCallback connection_callback_;
43 }; 44 };
44 45
45 } // namespace device 46 } // namespace device
46 47
47 #endif // DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_MAC_H_ 48 #endif // DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_MAC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_profile_chromeos_unittest.cc ('k') | device/bluetooth/bluetooth_profile_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698