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

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

Issue 975323002: Revert of Fix BluetoothAdapterProfileChromeOS lifecycle management (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROMEOS_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 // Method run on the socket thread with a valid file descriptor |fd|, once 142 // Method run on the socket thread with a valid file descriptor |fd|, once
143 // complete calls |callback| on the UI thread with an appropriate argument 143 // complete calls |callback| on the UI thread with an appropriate argument
144 // indicating success or failure. 144 // indicating success or failure.
145 void DoConnect(scoped_ptr<dbus::FileDescriptor> fd, 145 void DoConnect(scoped_ptr<dbus::FileDescriptor> fd,
146 const ConfirmationCallback& callback); 146 const ConfirmationCallback& callback);
147 147
148 // Method run to clean-up a listening socket. 148 // Method run to clean-up a listening socket.
149 void DoCloseListening(); 149 void DoCloseListening();
150 150
151 // Unregisters this socket's usage of the Bluetooth profile which cleans up 151 // Unregister the underlying profile client object from the Bluetooth Daemon.
152 // the profile if no one is using it.
153 void UnregisterProfile(); 152 void UnregisterProfile();
154 153
154 // Releases the profile after the delegate is gone.
155 void ReleaseProfile(BluetoothAdapterProfileChromeOS* profile);
156
155 // Adapter the profile is registered against 157 // Adapter the profile is registered against
156 scoped_refptr<device::BluetoothAdapter> adapter_; 158 scoped_refptr<device::BluetoothAdapter> adapter_;
157 159
158 // Address and D-Bus object path of the device being connected to, empty and 160 // Address and D-Bus object path of the device being connected to, empty and
159 // ignored if the socket is listening. 161 // ignored if the socket is listening.
160 std::string device_address_; 162 std::string device_address_;
161 dbus::ObjectPath device_path_; 163 dbus::ObjectPath device_path_;
162 164
163 // UUID of the profile being connected to, or listening on. 165 // UUID of the profile being connected to, or listening on.
164 device::BluetoothUUID uuid_; 166 device::BluetoothUUID uuid_;
(...skipping 27 matching lines...) Expand all
192 bool cancelled; 194 bool cancelled;
193 }; 195 };
194 std::queue<linked_ptr<ConnectionRequest> > connection_request_queue_; 196 std::queue<linked_ptr<ConnectionRequest> > connection_request_queue_;
195 197
196 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketChromeOS); 198 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketChromeOS);
197 }; 199 };
198 200
199 } // namespace chromeos 201 } // namespace chromeos
200 202
201 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_ 203 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_chromeos_unittest.cc ('k') | device/bluetooth/bluetooth_socket_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698