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