| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_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 "chrome/browser/chromeos/bluetooth/bluetooth_service_record.h" | 11 #include "device/bluetooth/bluetooth_service_record.h" |
| 12 #include "chrome/browser/chromeos/bluetooth/bluetooth_socket.h" | 12 #include "device/bluetooth/bluetooth_socket.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace bluetooth { |
| 15 | 15 |
| 16 // This class is an implementation of BluetoothSocket class for Chrome OS | 16 // This class is an implementation of BluetoothSocket class for Chrome OS |
| 17 // platform. | 17 // platform. |
| 18 class BluetoothSocketChromeOs : public BluetoothSocket { | 18 class BluetoothSocketChromeOs : public BluetoothSocket { |
| 19 public: | 19 public: |
| 20 static scoped_refptr<BluetoothSocket> CreateBluetoothSocket( | 20 static scoped_refptr<BluetoothSocket> CreateBluetoothSocket( |
| 21 const BluetoothServiceRecord& service_record); | 21 const BluetoothServiceRecord& service_record); |
| 22 | 22 |
| 23 // BluetoothSocket override | 23 // BluetoothSocket override |
| 24 virtual int fd() const OVERRIDE; | 24 virtual int fd() const OVERRIDE; |
| 25 | 25 |
| 26 protected: | 26 protected: |
| 27 virtual ~BluetoothSocketChromeOs(); | 27 virtual ~BluetoothSocketChromeOs(); |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 BluetoothSocketChromeOs(const std::string& address, int fd); | 30 BluetoothSocketChromeOs(const std::string& address, int fd); |
| 31 | 31 |
| 32 const std::string address_; | 32 const std::string address_; |
| 33 const int fd_; | 33 const int fd_; |
| 34 | 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketChromeOs); | 35 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketChromeOs); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } // namespace chromeos | 38 } // namespace bluetooth |
| 39 | 39 |
| 40 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_ | 40 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_ |
| OLD | NEW |