1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_OUTCOME_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_OUTCOME_H_
10 // This enum is returned by various internal discovery session methods in
11 // BluetoothAdapter in order to histogram the causes of discovery failures.
12 enum class UMABluetoothDiscoverySessionOutcome
{
14 UNKNOWN
= 1, // Used when the platform has more information that isn't
15 // reflected in any of these enum values or hasn't been wired
18 ADAPTER_NOT_PRESENT
= 3,
19 ADAPTER_REMOVED
= 4, // Returned if the adapter disappeared during a callback
22 REMOVE_WITH_PENDING_REQUEST
= 6,
23 ACTIVE_SESSION_NOT_IN_ADAPTER
= 7,
26 // ChromeOS-specific failures:
27 CHROMEOS_DBUS_UNKNOWN_ADAPTER
= 9,
28 CHROMEOS_DBUS_NO_RESPONSE
= 10,
29 CHROMEOS_DBUS_IN_PROGRESS
= 11,
30 CHROMEOS_DBUS_NOT_READY
= 12,
31 CHROMEOS_DBUS_FAILED_MAYBE_UNSUPPORTED_TRANSPORT
= 13,
32 // NOTE: Add new outcomes immediately above this line. Make sure to update the
33 // enum list in tools/metrics/histograms/histograms.xml accordingly.
39 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_OUTCOME_H_