summaryrefslogtreecommitdiffstats
path: root/remoting/host/usage_stats_consent.h
blob: 18081a6c587b9dc47b28c666ea4cbdb912f498a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2012 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.

#ifndef REMOTING_HOST_USAGE_STATS_CONSENT_H_
#define REMOTING_HOST_USAGE_STATS_CONSENT_H_

namespace remoting {

// Retrieves the user's consent to collect crash dumps and gather usage
// statistics.
bool GetUsageStatsConsent(bool* allowed, bool* set_by_policy);

// Retrieves the effective user's consent to collect crash dumps and gather
// usage statistics. In most cases the returned value matches |allowed| returned
// by GetUsageStatsConsent(). If GetUsageStatsConsent() fails this routine
// reports that crash dump repoting is disabled.
bool IsUsageStatsAllowed();

// Records the user's consent to collect crash dumps and gather usage
// statistics.
bool SetUsageStatsConsent(bool allowed);

}  // remoting

#endif  // REMOTING_HOST_USAGE_STATS_CONSENT_H_