| 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); }
|
| +}
|
|
|