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

Unified Diff: components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/util/MinidumpUploadDelegate.java

Issue 2441623002: Split MinidumpUploadService into core- and Chrome-implementation. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/util/MinidumpUploadDelegate.java
diff --git a/components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/util/MinidumpUploadDelegate.java b/components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/util/MinidumpUploadDelegate.java
new file mode 100644
index 0000000000000000000000000000000000000000..2195a8334ed800914deb0b4d5577df69c5136ab6
--- /dev/null
+++ b/components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/util/MinidumpUploadDelegate.java
@@ -0,0 +1,30 @@
+// 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.
+
+package org.chromium.components.minidump_uploader.util;
+
+import android.content.Context;
+
+/**
+ * Interface giving clients of the Minidump uploader component the ability to control and log
Ilya Sherman 2016/10/21 00:27:27 Optional nit: It's not clear to me that capitalizi
gsennton 2016/10/21 13:43:32 Done.
+ * different stages of the uploading.
+ */
+public interface MinidumpUploadDelegate {
+ /**
+ * Called when a Minidump is uploaded successfully.
+ * @param fileName is the name of the Minidump file that was uploaded.
Ilya Sherman 2016/10/21 00:27:27 nit: Please document the |context| param as well.
gsennton 2016/10/21 13:43:32 Hah, it turns out the Context isn't even needed :)
Ilya Sherman 2016/10/21 21:47:51 Yep, a separate CL to remove it would be great --
gsennton 2016/10/25 13:13:53 Filed crbug.com/659038 so I don't forget this.
+ */
+ void onSuccessfulUpload(Context context, String fileName);
Ilya Sherman 2016/10/21 00:27:27 nit: Would it make sense to pass a crash type rath
gsennton 2016/10/21 13:43:32 Definitely :), done.
+
+ /**
+ * Called when we fail to upload a Minidump too many times.
+ * @param fileName is the name of the Minidump file that failed to be uploaded.
+ */
+ void onMaxedOutUploadFailures(Context context, String fileName);
+
+ /**
+ * @return A permission manager determining whether a Minidump can be uploaded at certain times.
+ */
+ CrashReportingPermissionManager getCrashReportingPermissionManager();
+}

Powered by Google App Engine
This is Rietveld 408576698