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_POSIX_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SOCKET_POSIX_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 Linux/ChromeOS | |
17 // platform. | |
keybuk
2012/09/13 23:57:30
If this is for Linux/ChromeOS then it should be Ch
youngki
2012/09/17 21:53:02
Done.
| |
18 class BluetoothSocketPosix : public BluetoothSocket { | |
19 public: | |
20 static scoped_refptr<BluetoothSocket> CreateBluetoothSocket( | |
21 const BluetoothServiceRecord& service_record); | |
22 | |
23 virtual int fd() const OVERRIDE; | |
24 | |
25 protected: | |
26 virtual ~BluetoothSocketPosix(); | |
27 | |
28 private: | |
29 BluetoothSocketPosix(const std::string& address, int fd); | |
30 | |
31 const std::string address_; | |
32 const int fd_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketPosix); | |
35 }; | |
36 | |
37 } // namespace chromeos | |
38 | |
39 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SOCKET_POSIX_H_ | |
OLD | NEW |