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

Side by Side Diff: device/bluetooth/bluez/bluetooth_pairing_bluez.cc

Issue 1898643002: Refactor device::BluetoothGattXXX classes to split into remote/local. (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 2016 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 #include "device/bluetooth/bluetooth_pairing_bluez.h" 5 #include "device/bluetooth/bluez/bluetooth_pairing_bluez.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "device/bluetooth/bluetooth_device.h" 9 #include "device/bluetooth/bluetooth_device.h"
10 #include "device/bluetooth/bluetooth_device_bluez.h" 10 #include "device/bluetooth/bluez/bluetooth_device_bluez.h"
11 11
12 using device::BluetoothDevice; 12 using device::BluetoothDevice;
13 13
14 namespace { 14 namespace {
15 15
16 // Histogram enumerations for pairing methods. 16 // Histogram enumerations for pairing methods.
17 enum UMAPairingMethod { 17 enum UMAPairingMethod {
18 UMA_PAIRING_METHOD_NONE, 18 UMA_PAIRING_METHOD_NONE,
19 UMA_PAIRING_METHOD_REQUEST_PINCODE, 19 UMA_PAIRING_METHOD_REQUEST_PINCODE,
20 UMA_PAIRING_METHOD_REQUEST_PASSKEY, 20 UMA_PAIRING_METHOD_REQUEST_PASSKEY,
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // If this is not an outgoing connection to the device, clean up the pairing 263 // If this is not an outgoing connection to the device, clean up the pairing
264 // context since the pairing is done. The outgoing connection case is cleaned 264 // context since the pairing is done. The outgoing connection case is cleaned
265 // up in the callback for the underlying Pair() call. 265 // up in the callback for the underlying Pair() call.
266 if (!device_->IsConnecting()) 266 if (!device_->IsConnecting())
267 device_->EndPairing(); 267 device_->EndPairing();
268 268
269 return callback_run; 269 return callback_run;
270 } 270 }
271 271
272 } // namespace bluez 272 } // namespace bluez
OLDNEW
« no previous file with comments | « device/bluetooth/bluez/bluetooth_pairing_bluez.h ('k') | device/bluetooth/bluez/bluetooth_remote_gatt_characteristic_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698