Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: device/bluetooth/bluetooth_socket_win.h

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h>
8 #include <WinSock2.h> 9 #include <WinSock2.h>
9 10
10 #include <string> 11 #include <string>
11 12
13 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
13 #include "device/bluetooth/bluetooth_adapter.h" 15 #include "device/bluetooth/bluetooth_adapter.h"
14 #include "device/bluetooth/bluetooth_service_record_win.h" 16 #include "device/bluetooth/bluetooth_service_record_win.h"
15 #include "device/bluetooth/bluetooth_socket.h" 17 #include "device/bluetooth/bluetooth_socket.h"
16 #include "device/bluetooth/bluetooth_socket_net.h" 18 #include "device/bluetooth/bluetooth_socket_net.h"
17 #include "device/bluetooth/bluetooth_uuid.h" 19 #include "device/bluetooth/bluetooth_uuid.h"
18 #include "net/base/ip_endpoint.h" 20 #include "net/base/ip_endpoint.h"
19 #include "net/socket/tcp_socket.h" 21 #include "net/socket/tcp_socket.h"
20 22
21 namespace device { 23 namespace device {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void OnAcceptOnSocketThread(const AcceptCompletionCallback& success_callback, 79 void OnAcceptOnSocketThread(const AcceptCompletionCallback& success_callback,
78 const ErrorCompletionCallback& error_callback, 80 const ErrorCompletionCallback& error_callback,
79 int accept_result); 81 int accept_result);
80 void OnAcceptOnUI(scoped_ptr<net::TCPSocket> accept_socket, 82 void OnAcceptOnUI(scoped_ptr<net::TCPSocket> accept_socket,
81 const net::IPEndPoint& peer_address, 83 const net::IPEndPoint& peer_address,
82 const AcceptCompletionCallback& success_callback, 84 const AcceptCompletionCallback& success_callback,
83 const ErrorCompletionCallback& error_callback); 85 const ErrorCompletionCallback& error_callback);
84 86
85 std::string device_address_; 87 std::string device_address_;
86 bool supports_rfcomm_; 88 bool supports_rfcomm_;
87 uint8 rfcomm_channel_; 89 uint8_t rfcomm_channel_;
88 BTH_ADDR bth_addr_; 90 BTH_ADDR bth_addr_;
89 91
90 // Data members below are only used when listening. 92 // Data members below are only used when listening.
91 scoped_refptr<device::BluetoothAdapter> adapter_; 93 scoped_refptr<device::BluetoothAdapter> adapter_;
92 scoped_ptr<ServiceRegData> service_reg_data_; 94 scoped_ptr<ServiceRegData> service_reg_data_;
93 scoped_ptr<net::TCPSocket> accept_socket_; 95 scoped_ptr<net::TCPSocket> accept_socket_;
94 net::IPEndPoint accept_address_; 96 net::IPEndPoint accept_address_;
95 97
96 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketWin); 98 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketWin);
97 }; 99 };
98 100
99 } // namespace device 101 } // namespace device
100 102
101 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_WIN_H_ 103 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_socket_thread.h ('k') | device/bluetooth/bluetooth_task_manager_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698