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

Side by Side Diff: extensions/browser/api/bluetooth_socket/bluetooth_api_socket.h

Issue 1902873002: Convert //extensions/browser/api from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_BLUETOOTH_SOCKET_BLUETOOTH_API_SOCKET_H_ 5 #ifndef EXTENSIONS_BROWSER_API_BLUETOOTH_SOCKET_BLUETOOTH_API_SOCKET_H_
6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_SOCKET_BLUETOOTH_API_SOCKET_H_ 6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_SOCKET_BLUETOOTH_API_SOCKET_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // The underlying device socket instance. 131 // The underlying device socket instance.
132 scoped_refptr<device::BluetoothSocket> socket_; 132 scoped_refptr<device::BluetoothSocket> socket_;
133 133
134 // The address of the device this socket is connected to. 134 // The address of the device this socket is connected to.
135 std::string device_address_; 135 std::string device_address_;
136 136
137 // The uuid of the service this socket is connected to. 137 // The uuid of the service this socket is connected to.
138 device::BluetoothUUID uuid_; 138 device::BluetoothUUID uuid_;
139 139
140 // Application-defined string - see bluetooth.idl. 140 // Application-defined string - see bluetooth.idl.
141 scoped_ptr<std::string> name_; 141 std::unique_ptr<std::string> name_;
142 142
143 // Flag indicating whether the socket is left open when the application is 143 // Flag indicating whether the socket is left open when the application is
144 // suspended - see bluetooth.idl. 144 // suspended - see bluetooth.idl.
145 bool persistent_; 145 bool persistent_;
146 146
147 // The size of the buffer used to receive data - see bluetooth.idl. 147 // The size of the buffer used to receive data - see bluetooth.idl.
148 int buffer_size_; 148 int buffer_size_;
149 149
150 // Flag indicating whether a connected socket blocks its peer from sending 150 // Flag indicating whether a connected socket blocks its peer from sending
151 // more data - see bluetooth.idl. 151 // more data - see bluetooth.idl.
152 bool paused_; 152 bool paused_;
153 153
154 // Flag indicating whether a socket is connected. 154 // Flag indicating whether a socket is connected.
155 bool connected_; 155 bool connected_;
156 156
157 DISALLOW_COPY_AND_ASSIGN(BluetoothApiSocket); 157 DISALLOW_COPY_AND_ASSIGN(BluetoothApiSocket);
158 }; 158 };
159 159
160 } // namespace extensions 160 } // namespace extensions
161 161
162 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_SOCKET_BLUETOOTH_API_SOCKET_H_ 162 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_SOCKET_BLUETOOTH_API_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698