1 // Copyright 2022 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PDF_METRICS_HANDLER_H_
6 #define PDF_METRICS_HANDLER_H_
10 #include "pdf/document_attachment_info.h"
12 namespace chrome_pdf {
14 struct DocumentMetadata;
16 // Handles various UMA metrics. Note that action metrics are handled separately.
17 class MetricsHandler {
20 MetricsHandler(const MetricsHandler& other) = delete;
21 MetricsHandler& operator=(const MetricsHandler& other) = delete;
24 void RecordAttachmentTypes(
25 const std::vector<DocumentAttachmentInfo>& attachments);
27 void RecordDocumentMetrics(const DocumentMetadata& metadata);
30 } // namespace chrome_pdf
32 #endif // PDF_METRICS_HANDLER_H_