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

Side by Side Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.h

Issue 2771893002: Move Bluetooth.Web.FunctionCall.Count UMA from browser to WebKit (Closed)
Patch Set: move Bluetooth.Web.FunctionCall.Count UMA from browser to WebKit Created 3 years, 9 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BluetoothMetrics_h
6 #define BluetoothMetrics_h
7
8 namespace blink {
9
10 // Enumeration of each Web Bluetooth API entry point.
11 enum class UMAWebBluetoothFunction {
12 REQUEST_DEVICE = 0,
13 CONNECT_GATT = 1,
14 GET_PRIMARY_SERVICE = 2,
15 SERVICE_GET_CHARACTERISTIC = 3,
16 CHARACTERISTIC_READ_VALUE = 4,
17 CHARACTERISTIC_WRITE_VALUE = 5,
18 CHARACTERISTIC_START_NOTIFICATIONS = 6,
19 CHARACTERISTIC_STOP_NOTIFICATIONS = 7,
20 REMOTE_GATT_SERVER_DISCONNECT = 8,
21 SERVICE_GET_CHARACTERISTICS = 9,
22 GET_PRIMARY_SERVICES = 10,
23 DESCRIPTOR_READ_VALUE = 11,
24 DESCRIPTOR_WRITE_VALUE = 12,
25 CHARACTERISTIC_GET_DESCRIPTOR = 13,
26 CHARACTERISTIC_GET_DESCRIPTORS = 14,
27 // NOTE: Add new actions immediately above this line. Make sure to update
28 // the enum list in tools/metrics/histograms/histograms.xml accordingly.
29 COUNT
30 };
31
32 // There should be a call to this function for every call to the Web Bluetooth
33 // API.
34 void RecordWebBluetoothFunctionCall(UMAWebBluetoothFunction);
haraken 2017/03/23 23:36:34 Nit: We normally create a static class. class Blu
juncai 2017/03/27 19:08:57 Done.
35
36 } // namespace blink
37
38 #endif // BluetoothMetrics_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698