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

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

Issue 1472223002: Review comments from https://codereview.chromium.org/1415573014/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 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
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_service_bluez.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_BLUEZ_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 namespace dbus { 23 namespace dbus {
24 class FileDescriptor; 24 class FileDescriptor;
25 } // namespace dbus 25 } // namespace dbus
26 26
27 namespace bluez { 27 namespace bluez {
28 28
29 class BluetoothDeviceBlueZ; 29 class BluetoothDeviceBlueZ;
30 class BluetoothAdapterBlueZ; 30 class BluetoothAdapterBlueZ;
31 class BluetoothAdapterProfileBlueZ; 31 class BluetoothAdapterProfileBlueZ;
32 32
33 // The BluetoothSocketBlueZ class implements BluetoothSocket for the 33 // The BluetoothSocketBlueZ class implements BluetoothSocket for platforms that
34 // Chrome OS platform. 34 // use BlueZ.
35 // 35 //
36 // This class is not thread-safe, but is only called from the UI thread. 36 // This class is not thread-safe, but is only called from the UI thread.
37 class DEVICE_BLUETOOTH_EXPORT BluetoothSocketBlueZ 37 class DEVICE_BLUETOOTH_EXPORT BluetoothSocketBlueZ
38 : public device::BluetoothSocketNet, 38 : public device::BluetoothSocketNet,
39 public device::BluetoothAdapter::Observer, 39 public device::BluetoothAdapter::Observer,
40 public bluez::BluetoothProfileServiceProvider::Delegate { 40 public bluez::BluetoothProfileServiceProvider::Delegate {
41 public: 41 public:
42 enum SecurityLevel { SECURITY_LEVEL_LOW, SECURITY_LEVEL_MEDIUM }; 42 enum SecurityLevel { SECURITY_LEVEL_LOW, SECURITY_LEVEL_MEDIUM };
43 43
44 static scoped_refptr<BluetoothSocketBlueZ> CreateBluetoothSocket( 44 static scoped_refptr<BluetoothSocketBlueZ> CreateBluetoothSocket(
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 bool cancelled; 192 bool cancelled;
193 }; 193 };
194 std::queue<linked_ptr<ConnectionRequest>> connection_request_queue_; 194 std::queue<linked_ptr<ConnectionRequest>> connection_request_queue_;
195 195
196 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketBlueZ); 196 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketBlueZ);
197 }; 197 };
198 198
199 } // namespace bluez 199 } // namespace bluez
200 200
201 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_BLUEZ_H_ 201 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_BLUEZ_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_service_bluez.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698