blob: cc05785f6d3cf92d772adc2325144af6facc8c0c [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
namespace metrics {
// An interface that provides whether metrics should be reported.
class EnabledStateProvider {
virtual ~EnabledStateProvider() {}
// Indicates that the user has provided consent to collect and report metrics.
virtual bool IsConsentGiven() = 0;
// Should collection and reporting be enabled. This should depend on consent
// being given.
virtual bool IsReportingEnabled();
} // namespace metrics