fixup! [M120 Migration][NaCl][PPFWK] Upgradable pepper plugin requirement
[platform/framework/web/chromium-efl.git] / pdf / metrics_handler.h
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.
4
5 #ifndef PDF_METRICS_HANDLER_H_
6 #define PDF_METRICS_HANDLER_H_
7
8 #include <vector>
9
10 #include "pdf/document_attachment_info.h"
11
12 namespace chrome_pdf {
13
14 struct DocumentMetadata;
15
16 // Handles various UMA metrics. Note that action metrics are handled separately.
17 class MetricsHandler {
18  public:
19   MetricsHandler();
20   MetricsHandler(const MetricsHandler& other) = delete;
21   MetricsHandler& operator=(const MetricsHandler& other) = delete;
22   ~MetricsHandler();
23
24   void RecordAttachmentTypes(
25       const std::vector<DocumentAttachmentInfo>& attachments);
26
27   void RecordDocumentMetrics(const DocumentMetadata& metadata);
28 };
29
30 }  // namespace chrome_pdf
31
32 #endif  // PDF_METRICS_HANDLER_H_