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

Unified Diff: android_webview/java/src/org/chromium/android_webview/crash/MinidumpUploader.java

Issue 2515353005: [Android WebView] Implement copying and uploading of Minidumps. (Closed)
Patch Set: Fix findbugs errors for realz! Created 4 years 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: android_webview/java/src/org/chromium/android_webview/crash/MinidumpUploader.java
diff --git a/android_webview/java/src/org/chromium/android_webview/crash/MinidumpUploader.java b/android_webview/java/src/org/chromium/android_webview/crash/MinidumpUploader.java
new file mode 100644
index 0000000000000000000000000000000000000000..1957f36a8f9cb75b67815f622e7f661f5c44b6f7
--- /dev/null
+++ b/android_webview/java/src/org/chromium/android_webview/crash/MinidumpUploader.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.android_webview.crash;
+
+/**
+ * Interface for uploading minidumps.
+ */
+public interface MinidumpUploader {
+ /**
+ * Try to upload all the minidumps in the crash directory.
+ * This method will be called on the UI thread of our JobService.
+ * @param uploadsFinishedCallback a callback that will be called when the uploading is finished
+ * (whether or not all of the uploads succeeded).
+ */
+ void uploadAllMinidumps(UploadsFinishedCallback uploadsFinishedCallback);
+
+ /**
+ * Cancel the current set of uploads.
+ * @return whether there are still uploads to be done.
+ */
+ boolean cancelUploads();
+
+ /**
+ * Provides an interface for the callback that will be called if all uploads are finished before
+ * they are canceled.
+ */
+ public interface UploadsFinishedCallback { public void uploadsFinished(boolean reschedule); }
+}

Powered by Google App Engine
This is Rietveld 408576698