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

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

Issue 2515293003: Increase Web Bluetooth device scanning duration [merge to M56] (Closed)
Patch Set: Created 4 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 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 BLUETOOTH_CHOOSER_CANCELLED = 9, 67 BLUETOOTH_CHOOSER_CANCELLED = 9,
68 BLUETOOTH_CHOOSER_DENIED_PERMISSION = 10, 68 BLUETOOTH_CHOOSER_DENIED_PERMISSION = 10,
69 BLACKLISTED_SERVICE_IN_FILTER = 11, 69 BLACKLISTED_SERVICE_IN_FILTER = 11,
70 BLUETOOTH_OVERVIEW_HELP_LINK_PRESSED = 12, 70 BLUETOOTH_OVERVIEW_HELP_LINK_PRESSED = 12,
71 ADAPTER_OFF_HELP_LINK_PRESSED = 13, 71 ADAPTER_OFF_HELP_LINK_PRESSED = 13,
72 NEED_LOCATION_HELP_LINK_PRESSED = 14, 72 NEED_LOCATION_HELP_LINK_PRESSED = 14,
73 BLUETOOTH_CHOOSER_POLICY_DISABLED = 15, 73 BLUETOOTH_CHOOSER_POLICY_DISABLED = 15,
74 BLUETOOTH_GLOBALLY_DISABLED = 16, 74 BLUETOOTH_GLOBALLY_DISABLED = 16,
75 BLUETOOTH_CHOOSER_EVENT_HANDLER_INVALID = 17, 75 BLUETOOTH_CHOOSER_EVENT_HANDLER_INVALID = 17,
76 BLUETOOTH_LOW_ENERGY_NOT_AVAILABLE = 18, 76 BLUETOOTH_LOW_ENERGY_NOT_AVAILABLE = 18,
77 BLUETOOTH_CHOOSER_RESCAN = 19,
77 // NOTE: Add new requestDevice() outcomes immediately above this line. Make 78 // NOTE: Add new requestDevice() outcomes immediately above this line. Make
78 // sure to update the enum list in 79 // sure to update the enum list in
79 // tools/metrics/histograms/histograms.xml accordingly. 80 // tools/metrics/histograms/histograms.xml accordingly.
80 COUNT 81 COUNT
81 }; 82 };
82 83
83 // There should be a call to this function before every 84 // There should be a call to this function before every
84 // Send(BluetoothMsg_RequestDeviceSuccess...) or 85 // Send(BluetoothMsg_RequestDeviceSuccess...) or
85 // Send(BluetoothMsg_RequestDeviceError...). 86 // Send(BluetoothMsg_RequestDeviceError...).
86 CONTENT_EXPORT void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); 87 CONTENT_EXPORT void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome);
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 290
290 // Records the raw RSSI, and processed result displayed to users, when 291 // Records the raw RSSI, and processed result displayed to users, when
291 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is 292 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is
292 // called. 293 // called.
293 void RecordRSSISignalStrength(int rssi); 294 void RecordRSSISignalStrength(int rssi);
294 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level); 295 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level);
295 296
296 } // namespace content 297 } // namespace content
297 298
298 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ 299 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
OLDNEW
« no previous file with comments | « content/browser/bluetooth/bluetooth_device_chooser_controller.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698