Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/util/CrashReportingPermissionManager.java

Issue 2737263006: [Android Crash Reporting] Allow uploading minidumps via the JobScheduler (Closed)
Patch Set: Fully implemented, still needs tests Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.components.minidump_uploader.util; 5 package org.chromium.components.minidump_uploader.util;
6 6
7 /** 7 /**
8 * Interface for crash reporting permissions. 8 * Interface for crash reporting permissions.
9 */ 9 */
10 public interface CrashReportingPermissionManager { 10 public interface CrashReportingPermissionManager {
(...skipping 14 matching lines...) Expand all
25 25
26 /** 26 /**
27 * Checks whether uploading of crash dumps is permitted, based on the corres ponding command line 27 * Checks whether uploading of crash dumps is permitted, based on the corres ponding command line
28 * flag only. 28 * flag only.
29 * 29 *
30 * @return whether uploading of crash dumps is enabled or disabled by a comm and line flag. 30 * @return whether uploading of crash dumps is enabled or disabled by a comm and line flag.
31 */ 31 */
32 public boolean isCrashUploadDisabledByCommandLine(); 32 public boolean isCrashUploadDisabledByCommandLine();
33 33
34 /** 34 /**
35 * Checks whether uploading of usage metrics is currently permitted. This is a combination of
36 * the below checks, plus networking restrictions.
37 *
38 * @return whether uploading usage metrics is currently permitted.
39 */
40 public boolean isMetricsUploadPermitted();
41
42 /**
43 * Checks whether uploading of usage metrics and crash dumps is currently pe rmitted, based on 35 * Checks whether uploading of usage metrics and crash dumps is currently pe rmitted, based on
44 * user consent only. 36 * user consent only.
45 * 37 *
46 * @return whether the user has consented to reporting usage metrics and cra sh dumps. 38 * @return whether the user has consented to reporting usage metrics and cra sh dumps.
47 */ 39 */
48 public boolean isUsageAndCrashReportingPermittedByUser(); 40 public boolean isUsageAndCrashReportingPermittedByUser();
49 41
50 /** 42 /**
51 * Checks whether to ignore all consent and upload limitations for usage met rics and crash 43 * Checks whether to ignore all consent and upload limitations for usage met rics and crash
52 * reporting. Used by test devices to avoid a UI dependency. 44 * reporting. Used by test devices to avoid a UI dependency.
53 * 45 *
54 * @return whether crash dumps should be uploaded if at all possible. 46 * @return whether crash dumps should be uploaded if at all possible.
55 */ 47 */
56 public boolean isUploadEnabledForTests(); 48 public boolean isUploadEnabledForTests();
57 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698