blob: 3393224a04e71ca31370209d02f993881f55f9b5 [file]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PDF_METRICS_HANDLER_H_
#define PDF_METRICS_HANDLER_H_
namespace chrome_pdf {
struct DocumentMetadata;
// Handles various UMA metrics. Note that action metrics are handled separately.
class MetricsHandler {
public:
MetricsHandler();
MetricsHandler(const MetricsHandler& other) = delete;
MetricsHandler& operator=(const MetricsHandler& other) = delete;
~MetricsHandler();
void RecordAccessibilityIsDocTagged(bool is_tagged);
void RecordDocumentMetrics(const DocumentMetadata& metadata);
void RecordUrlSchemeIsFile(bool is_file);
};
} // namespace chrome_pdf
#endif // PDF_METRICS_HANDLER_H_