Create a new-installs-only uniformity trial.
[chromium-blink-merge.git] / device / bluetooth / bluetooth_socket_chromeos.h
blob06858305b498e0bc57820bd118f0a0e80fce095d
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_
8 #include <string>
10 #include "base/memory/ref_counted.h"
11 #include "device/bluetooth/bluetooth_socket.h"
13 namespace device {
15 class BluetoothServiceRecord;
17 } // namespace device
19 namespace chromeos {
21 // This class is an implementation of BluetoothSocket class for Chrome OS
22 // platform.
23 class BluetoothSocketChromeOs : public device::BluetoothSocket {
24 public:
25 static scoped_refptr<device::BluetoothSocket> CreateBluetoothSocket(
26 const device::BluetoothServiceRecord& service_record);
28 // BluetoothSocket override
29 virtual int fd() const OVERRIDE;
31 protected:
32 virtual ~BluetoothSocketChromeOs();
34 private:
35 BluetoothSocketChromeOs(const std::string& address, int fd);
37 const std::string address_;
38 const int fd_;
40 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketChromeOs);
43 } // namespace chromeos
45 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_