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

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

Issue 13983004: Simplified BluetoothDeviceMac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments. Created 7 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
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_SOCKET_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_MAC_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "device/bluetooth/bluetooth_socket.h" 11 #include "device/bluetooth/bluetooth_socket.h"
12 12
13 #ifdef __OBJC__ 13 #ifdef __OBJC__
14 @class BluetoothRFCOMMChannelDelegate;
15 @class IOBluetoothRFCOMMChannel; 14 @class IOBluetoothRFCOMMChannel;
16 #else 15 #else
17 class BluetoothRFCOMMChannelDelegate;
18 class IOBluetoothRFCOMMChannel; 16 class IOBluetoothRFCOMMChannel;
19 #endif 17 #endif
20 18
21 namespace net { 19 namespace net {
22 20
23 class DrainableIOBuffer; 21 class DrainableIOBuffer;
24 class GrowableIOBuffer; 22 class GrowableIOBuffer;
25 23
26 } // namespace net 24 } // namespace net
27 25
(...skipping 19 matching lines...) Expand all
47 45
48 protected: 46 protected:
49 virtual ~BluetoothSocketMac(); 47 virtual ~BluetoothSocketMac();
50 48
51 private: 49 private:
52 explicit BluetoothSocketMac(IOBluetoothRFCOMMChannel* rfcomm_channel); 50 explicit BluetoothSocketMac(IOBluetoothRFCOMMChannel* rfcomm_channel);
53 51
54 void ResetIncomingDataBuffer(); 52 void ResetIncomingDataBuffer();
55 53
56 IOBluetoothRFCOMMChannel* rfcomm_channel_; 54 IOBluetoothRFCOMMChannel* rfcomm_channel_;
57 BluetoothRFCOMMChannelDelegate* delegate_;
58 scoped_refptr<net::GrowableIOBuffer> incoming_data_buffer_; 55 scoped_refptr<net::GrowableIOBuffer> incoming_data_buffer_;
59 std::string error_message_; 56 std::string error_message_;
60 57
61 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketMac); 58 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketMac);
62 }; 59 };
63 60
64 } // namespace device 61 } // namespace device
65 62
66 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_MAC_H_ 63 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698