// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_USB_WEB_USB_HISTOGRAMS_H_ #define CHROME_BROWSER_USB_WEB_USB_HISTOGRAMS_H_ // Reasons the chooser may be closed. These are used in histograms so do not // remove/reorder entries. Only add at the end just before // WEBUSB_CHOOSER_CLOSED_MAX. Also remember to update the enum listing in // tools/metrics/histograms/enums.xml. enum WebUsbChooserClosed { … }; // Reasons a permission may be closed. These are used in histograms so do not // remove/reorder entries. Only add at the end just before // WEBUSB_PERMISSION_REVOKED_MAX. Also remember to update the enum listing in // tools/metrics/histograms/enums.xml. enum WebUsbPermissionRevoked { … }; void RecordWebUsbPermissionRevocation(WebUsbPermissionRevoked kind); void RecordWebUsbChooserClosure(WebUsbChooserClosed disposition); #endif // CHROME_BROWSER_USB_WEB_USB_HISTOGRAMS_H_