Roll src/third_party/WebKit b41a10f:afd8afd (svn 202201:202202)
[chromium-blink-merge.git] / remoting / host / usage_stats_consent.h
blob18081a6c587b9dc47b28c666ea4cbdb912f498a0
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef REMOTING_HOST_USAGE_STATS_CONSENT_H_
6 #define REMOTING_HOST_USAGE_STATS_CONSENT_H_
8 namespace remoting {
10 // Retrieves the user's consent to collect crash dumps and gather usage
11 // statistics.
12 bool GetUsageStatsConsent(bool* allowed, bool* set_by_policy);
14 // Retrieves the effective user's consent to collect crash dumps and gather
15 // usage statistics. In most cases the returned value matches |allowed| returned
16 // by GetUsageStatsConsent(). If GetUsageStatsConsent() fails this routine
17 // reports that crash dump repoting is disabled.
18 bool IsUsageStatsAllowed();
20 // Records the user's consent to collect crash dumps and gather usage
21 // statistics.
22 bool SetUsageStatsConsent(bool allowed);
24 } // remoting
26 #endif // REMOTING_HOST_USAGE_STATS_CONSENT_H_