1 // Copyright (c) 2012 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.
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_
10 #include "base/memory/ref_counted.h"
11 #include "device/bluetooth/bluetooth_socket.h"
15 class BluetoothServiceRecord
;
21 // This class is an implementation of BluetoothSocket class for Chrome OS
23 class BluetoothSocketChromeOs
: public device::BluetoothSocket
{
25 static scoped_refptr
<device::BluetoothSocket
> CreateBluetoothSocket(
26 const device::BluetoothServiceRecord
& service_record
);
28 // BluetoothSocket override
29 virtual int fd() const OVERRIDE
;
32 virtual ~BluetoothSocketChromeOs();
35 BluetoothSocketChromeOs(const std::string
& address
, int fd
);
37 const std::string address_
;
40 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketChromeOs
);
43 } // namespace chromeos
45 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_