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

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

Issue 2466223002: Implement WebBluetooth getDescriptor[s] (Closed)
Patch Set: Updating cross-origin-objects-exceptions.html Created 4 years 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // Note: Add new GATT Outcomes immediately above this line. 229 // Note: Add new GATT Outcomes immediately above this line.
230 // Make sure to update the enum list in 230 // Make sure to update the enum list in
231 // tools/metrics/histograms/histograms.xml accordingly. 231 // tools/metrics/histograms/histograms.xml accordingly.
232 COUNT 232 COUNT
233 }; 233 };
234 234
235 enum class UMAGATTOperation { 235 enum class UMAGATTOperation {
236 CHARACTERISTIC_READ, 236 CHARACTERISTIC_READ,
237 CHARACTERISTIC_WRITE, 237 CHARACTERISTIC_WRITE,
238 START_NOTIFICATIONS, 238 START_NOTIFICATIONS,
239 DESCRIPTOR_READ,
ortuno 2016/12/07 08:05:12 No need for these changes either.
dougt 2016/12/07 19:50:34 Done.
240 DESCRIPTOR_WRITE,
239 // Note: Add new GATT Operations immediately above this line. 241 // Note: Add new GATT Operations immediately above this line.
240 COUNT 242 COUNT
241 }; 243 };
242 244
243 // Records the outcome of a GATT operation. 245 // Records the outcome of a GATT operation.
244 // There should be a call to this function whenever the corresponding operation 246 // There should be a call to this function whenever the corresponding operation
245 // doesn't have a call to Record[Operation]Outcome. 247 // doesn't have a call to Record[Operation]Outcome.
246 void RecordGATTOperationOutcome(UMAGATTOperation operation, 248 void RecordGATTOperationOutcome(UMAGATTOperation operation,
247 UMAGATTOperationOutcome outcome); 249 UMAGATTOperationOutcome outcome);
248 250
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 292
291 // Records the raw RSSI, and processed result displayed to users, when 293 // Records the raw RSSI, and processed result displayed to users, when
292 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is 294 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is
293 // called. 295 // called.
294 void RecordRSSISignalStrength(int rssi); 296 void RecordRSSISignalStrength(int rssi);
295 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level); 297 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level);
296 298
297 } // namespace content 299 } // namespace content
298 300
299 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ 301 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698