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

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

Issue 1124883004: Submission for C++ Readability (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert overrides Created 5 years, 5 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 13 matching lines...) Expand all
24 } // namespace dbus 24 } // namespace dbus
25 25
26 namespace chromeos { 26 namespace chromeos {
27 27
28 class BluetoothDeviceChromeOS; 28 class BluetoothDeviceChromeOS;
29 class BluetoothAdapterChromeOS; 29 class BluetoothAdapterChromeOS;
30 class BluetoothAdapterProfileChromeOS; 30 class BluetoothAdapterProfileChromeOS;
31 31
32 // The BluetoothSocketChromeOS class implements BluetoothSocket for the 32 // The BluetoothSocketChromeOS class implements BluetoothSocket for the
33 // Chrome OS platform. 33 // Chrome OS platform.
34 //
35 // This class is not thread-safe, but is only called from the UI thread.
34 class CHROMEOS_EXPORT BluetoothSocketChromeOS 36 class CHROMEOS_EXPORT BluetoothSocketChromeOS
35 : public device::BluetoothSocketNet, 37 : public device::BluetoothSocketNet,
36 public device::BluetoothAdapter::Observer, 38 public device::BluetoothAdapter::Observer,
37 public BluetoothProfileServiceProvider::Delegate { 39 public BluetoothProfileServiceProvider::Delegate {
38 public: 40 public:
39 enum SecurityLevel { 41 enum SecurityLevel {
40 SECURITY_LEVEL_LOW, 42 SECURITY_LEVEL_LOW,
41 SECURITY_LEVEL_MEDIUM 43 SECURITY_LEVEL_MEDIUM
42 }; 44 };
43 45
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_device_chromeos.h ('k') | device/bluetooth/bluetooth_socket_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698