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 DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_WIN_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_WIN_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_WIN_H_ |
7 | 7 |
8 #include <WinSock2.h> | 8 #include <WinSock2.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 const BluetoothUUID& uuid, | 48 const BluetoothUUID& uuid, |
49 const BluetoothAdapter::ServiceOptions& options, | 49 const BluetoothAdapter::ServiceOptions& options, |
50 const base::Closure& success_callback, | 50 const base::Closure& success_callback, |
51 const ErrorCompletionCallback& error_callback); | 51 const ErrorCompletionCallback& error_callback); |
52 | 52 |
53 // BluetoothSocketNet: | 53 // BluetoothSocketNet: |
54 void ResetData(); | 54 void ResetData(); |
55 | 55 |
56 // BluetoothSocket: | 56 // BluetoothSocket: |
57 virtual void Accept(const AcceptCompletionCallback& success_callback, | 57 virtual void Accept(const AcceptCompletionCallback& success_callback, |
58 const ErrorCompletionCallback& error_callback) OVERRIDE; | 58 const ErrorCompletionCallback& error_callback) override; |
59 | 59 |
60 protected: | 60 protected: |
61 virtual ~BluetoothSocketWin(); | 61 virtual ~BluetoothSocketWin(); |
62 | 62 |
63 private: | 63 private: |
64 struct ServiceRegData; | 64 struct ServiceRegData; |
65 | 65 |
66 BluetoothSocketWin(scoped_refptr<base::SequencedTaskRunner> ui_task_runner, | 66 BluetoothSocketWin(scoped_refptr<base::SequencedTaskRunner> ui_task_runner, |
67 scoped_refptr<BluetoothSocketThread> socket_thread); | 67 scoped_refptr<BluetoothSocketThread> socket_thread); |
68 | 68 |
(...skipping 23 matching lines...) Expand all Loading... |
92 scoped_ptr<ServiceRegData> service_reg_data_; | 92 scoped_ptr<ServiceRegData> service_reg_data_; |
93 scoped_ptr<net::TCPSocket> accept_socket_; | 93 scoped_ptr<net::TCPSocket> accept_socket_; |
94 net::IPEndPoint accept_address_; | 94 net::IPEndPoint accept_address_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketWin); | 96 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketWin); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace device | 99 } // namespace device |
100 | 100 |
101 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_WIN_H_ | 101 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_WIN_H_ |
OLD | NEW |