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

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

Issue 1415573014: Reland "Add Linux support for the Bluetooth API" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix. Created 5 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 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 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_DISCOVERY_SESSION_OUTCOME_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_OUTCOME_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_OUTCOME_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_OUTCOME_H_
7 7
8 namespace device { 8 namespace device {
9 9
10 // This enum is returned by various internal discovery session methods in 10 // This enum is returned by various internal discovery session methods in
11 // BluetoothAdapter in order to histogram the causes of discovery failures. 11 // BluetoothAdapter in order to histogram the causes of discovery failures.
12 enum class UMABluetoothDiscoverySessionOutcome { 12 enum class UMABluetoothDiscoverySessionOutcome {
13 SUCCESS = 0, 13 SUCCESS = 0,
14 UNKNOWN = 1, // Used when the platform has more information that isn't 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 15 // reflected in any of these enum values or hasn't been wired
16 // through. 16 // through.
17 NOT_IMPLEMENTED = 2, 17 NOT_IMPLEMENTED = 2,
18 ADAPTER_NOT_PRESENT = 3, 18 ADAPTER_NOT_PRESENT = 3,
19 ADAPTER_REMOVED = 4, // Returned if the adapter disappeared during a callback 19 ADAPTER_REMOVED = 4, // Returned if the adapter disappeared during a callback
20 // chain. 20 // chain.
21 NOT_ACTIVE = 5, 21 NOT_ACTIVE = 5,
22 REMOVE_WITH_PENDING_REQUEST = 6, 22 REMOVE_WITH_PENDING_REQUEST = 6,
23 ACTIVE_SESSION_NOT_IN_ADAPTER = 7, 23 ACTIVE_SESSION_NOT_IN_ADAPTER = 7,
24 FAILED = 8, 24 FAILED = 8,
25 25
26 // ChromeOS-specific failures: 26 // BlueZ-specific failures:
27 CHROMEOS_DBUS_UNKNOWN_ADAPTER = 9, 27 BLUEZ_DBUS_UNKNOWN_ADAPTER = 9,
28 CHROMEOS_DBUS_NO_RESPONSE = 10, 28 BLUEZ_DBUS_NO_RESPONSE = 10,
29 CHROMEOS_DBUS_IN_PROGRESS = 11, 29 BLUEZ_DBUS_IN_PROGRESS = 11,
30 CHROMEOS_DBUS_NOT_READY = 12, 30 BLUEZ_DBUS_NOT_READY = 12,
31 CHROMEOS_DBUS_FAILED_MAYBE_UNSUPPORTED_TRANSPORT = 13, 31 BLUEZ_DBUS_FAILED_MAYBE_UNSUPPORTED_TRANSPORT = 13,
32 // NOTE: Add new outcomes immediately above this line. Make sure to update the 32 // NOTE: Add new outcomes immediately above this line. Make sure to update the
33 // enum list in tools/metrics/histograms/histograms.xml accordingly. 33 // enum list in tools/metrics/histograms/histograms.xml accordingly.
ortuno 2015/11/06 18:15:41 You forgot to update the labels in histograms.xml
rkc 2015/11/25 00:48:16 Done.
34 COUNT 34 COUNT
35 }; 35 };
36 36
37 } // namespace device 37 } // namespace device
38 38
39 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_OUTCOME_H_ 39 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_OUTCOME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698