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

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

Issue 2709163008: [Android Crash Reporting] Componentize MinidumpUploadImpl.java (Closed)
Patch Set: Finished rebase Created 3 years, 10 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/MinidumpUploaderDelegate.java
diff --git a/components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/MinidumpUploaderDelegate.java b/components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/MinidumpUploaderDelegate.java
new file mode 100644
index 0000000000000000000000000000000000000000..83b8e8101e683026b604c05646f9fa4de7525c3f
--- /dev/null
+++ b/components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/MinidumpUploaderDelegate.java
@@ -0,0 +1,33 @@
+// 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;
+
+import org.chromium.components.minidump_uploader.util.CrashReportingPermissionManager;
+
+import java.io.File;
+
+/**
+ * Interface for embedder-specific implementations for uploading minidumps.
+ */
+public interface MinidumpUploaderDelegate {
+ /**
+ * Creates the directory in which the embedder will store its minidumps.
+ * @return A reference to the created directory, or null if the creation failed.
+ */
+ File createCrashDir();
+
+ /**
+ * Creates the permission manager used to evaluate whether uploading should be allowed.
+ * @return The permission manager.
+ */
+ CrashReportingPermissionManager createCrashReportingPermissionManager();
+
+ /**
+ * Performs any pre-work necessary for uploading minidumps, then calls the {@param startUploads}
+ * continuation to initiate uploading the minidumps.
+ * @param startUploads The continuation to call once any necessary pre-work is completed.
+ */
+ void prepareToUploadMinidumps(Runnable startUploads);
+}

Powered by Google App Engine
This is Rietveld 408576698