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

Side by Side Diff: content/browser/bluetooth/bluetooth_metrics.h

Issue 1286063002: Add a path for content/ to open and control a Bluetooth chooser dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Fix comment wrapping. Created 5 years, 3 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 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 CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ 5 #ifndef CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ 6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 // There should be a call to this function for every call to the Web Bluetooth 37 // There should be a call to this function for every call to the Web Bluetooth
38 // API. 38 // API.
39 void RecordWebBluetoothFunctionCall(UMAWebBluetoothFunction function); 39 void RecordWebBluetoothFunctionCall(UMAWebBluetoothFunction function);
40 40
41 // requestDevice() Metrics 41 // requestDevice() Metrics
42 enum class UMARequestDeviceOutcome { 42 enum class UMARequestDeviceOutcome {
43 SUCCESS = 0, 43 SUCCESS = 0,
44 NO_BLUETOOTH_ADAPTER = 1, 44 NO_BLUETOOTH_ADAPTER = 1,
45 NO_RENDER_FRAME = 2, 45 NO_RENDER_FRAME = 2,
46 DISCOVERY_START_FAILED = 3, 46 OBSOLETE_DISCOVERY_START_FAILED = 3,
47 DISCOVERY_STOP_FAILED = 4, 47 OBSOLETE_DISCOVERY_STOP_FAILED = 4,
48 NO_MATCHING_DEVICES_FOUND = 5, 48 OBSOLETE_NO_MATCHING_DEVICES_FOUND = 5,
49 BLUETOOTH_ADAPTER_NOT_PRESENT = 6, 49 BLUETOOTH_ADAPTER_NOT_PRESENT = 6,
50 BLUETOOTH_ADAPTER_OFF = 7, 50 OBSOLETE_BLUETOOTH_ADAPTER_OFF = 7,
51 CHOSEN_DEVICE_VANISHED = 8,
52 BLUETOOTH_CHOOSER_CANCELLED = 9,
51 // NOTE: Add new requestDevice() outcomes immediately above this line. Make 53 // NOTE: Add new requestDevice() outcomes immediately above this line. Make
52 // sure to update the enum list in 54 // sure to update the enum list in
53 // tools/metrics/histograms/histograms.xml accordingly. 55 // tools/metrics/histograms/histograms.xml accordingly.
54 COUNT 56 COUNT
55 }; 57 };
56 // There should be a call to this function before every 58 // There should be a call to this function before every
57 // Send(BluetoothMsg_RequestDeviceSuccess...) or 59 // Send(BluetoothMsg_RequestDeviceSuccess...) or
58 // Send(BluetoothMsg_RequestDeviceError...). 60 // Send(BluetoothMsg_RequestDeviceError...).
59 void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); 61 void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome);
60 62
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 177
176 // Characteristic.writeValue() Metrics 178 // Characteristic.writeValue() Metrics
177 // There should be a call to this function for every call to 179 // There should be a call to this function for every call to
178 // Send(BluetoothMsg_WriteCharacteristicValueSuccess) and 180 // Send(BluetoothMsg_WriteCharacteristicValueSuccess) and
179 // Send(BluetoothMsg_WriteCharacteristicValueError). 181 // Send(BluetoothMsg_WriteCharacteristicValueError).
180 void RecordCharacteristicWriteValueOutcome(UMAGATTOperationOutcome error); 182 void RecordCharacteristicWriteValueOutcome(UMAGATTOperationOutcome error);
181 183
182 } // namespace content 184 } // namespace content
183 185
184 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ 186 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
OLDNEW
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | content/browser/bluetooth/first_device_bluetooth_chooser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698