QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / device / bluetooth / bluetooth_discovery_session_outcome.h
blob38cf3a17e7f551ccc85ce32991eb6a6b759f2015
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_
8 namespace device {
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 {
13 SUCCESS = 0,
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
16 // through.
17 NOT_IMPLEMENTED = 2,
18 ADAPTER_NOT_PRESENT = 3,
19 ADAPTER_REMOVED = 4, // Returned if the adapter disappeared during a callback
20 // chain.
21 NOT_ACTIVE = 5,
22 REMOVE_WITH_PENDING_REQUEST = 6,
23 ACTIVE_SESSION_NOT_IN_ADAPTER = 7,
24 FAILED = 8,
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.
34 COUNT
37 } // namespace device
39 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_OUTCOME_H_