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