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

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

Issue 2384463002: bluetooth: mac: Reject requestDevice promise if Mac version is <= 10.9 (Closed)
Patch Set: Created 4 years, 2 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 CHOSEN_DEVICE_VANISHED = 8, 67 CHOSEN_DEVICE_VANISHED = 8,
68 BLUETOOTH_CHOOSER_CANCELLED = 9, 68 BLUETOOTH_CHOOSER_CANCELLED = 9,
69 BLUETOOTH_CHOOSER_DENIED_PERMISSION = 10, 69 BLUETOOTH_CHOOSER_DENIED_PERMISSION = 10,
70 BLACKLISTED_SERVICE_IN_FILTER = 11, 70 BLACKLISTED_SERVICE_IN_FILTER = 11,
71 BLUETOOTH_OVERVIEW_HELP_LINK_PRESSED = 12, 71 BLUETOOTH_OVERVIEW_HELP_LINK_PRESSED = 12,
72 ADAPTER_OFF_HELP_LINK_PRESSED = 13, 72 ADAPTER_OFF_HELP_LINK_PRESSED = 13,
73 NEED_LOCATION_HELP_LINK_PRESSED = 14, 73 NEED_LOCATION_HELP_LINK_PRESSED = 14,
74 BLUETOOTH_CHOOSER_POLICY_DISABLED = 15, 74 BLUETOOTH_CHOOSER_POLICY_DISABLED = 15,
75 BLUETOOTH_GLOBALLY_DISABLED = 16, 75 BLUETOOTH_GLOBALLY_DISABLED = 16,
76 BLUETOOTH_CHOOSER_EVENT_HANDLER_INVALID = 17, 76 BLUETOOTH_CHOOSER_EVENT_HANDLER_INVALID = 17,
77 BLUETOOTH_LOW_ENERGY_NOT_AVAILABLE = 18,
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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // Send(BluetoothMsg_StopNotificationsError). 272 // Send(BluetoothMsg_StopNotificationsError).
272 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); 273 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome);
273 274
274 // Records the outcome of a cache query for startNotifications. Should only be 275 // Records the outcome of a cache query for startNotifications. Should only be
275 // called if QueryCacheForCharacteristic fails. 276 // called if QueryCacheForCharacteristic fails.
276 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); 277 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome);
277 278
278 } // namespace content 279 } // namespace content
279 280
280 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ 281 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698