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

Unified Diff: android_webview/java/src/org/chromium/android_webview/UserConsentInterface.java

Issue 2628863004: [Android WebView] Ensure we have user consent before uploading minidumps (Closed)
Patch Set: Created 3 years, 11 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: android_webview/java/src/org/chromium/android_webview/UserConsentInterface.java
diff --git a/android_webview/java/src/org/chromium/android_webview/UserConsentInterface.java b/android_webview/java/src/org/chromium/android_webview/UserConsentInterface.java
new file mode 100644
index 0000000000000000000000000000000000000000..50324572b9895b753655c086974fe28f841fe013
--- /dev/null
+++ b/android_webview/java/src/org/chromium/android_webview/UserConsentInterface.java
@@ -0,0 +1,23 @@
+// Copyright 2017 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;
+
+import android.webkit.ValueCallback;
+
+/**
+ * Interface for checking user consent for Minidump uploading.
+ */
+public interface UserConsentInterface {
sgurun-gerrit only 2017/01/13 08:14:21 Is this class really necessary?
gsennton 2017/01/13 19:01:55 Its only use is to allow me to mock PlatformServic
gsennton 2017/01/23 17:50:39 Removed this now.
+ /**
+ * Returns whether this interface is available for querying.
+ */
+ boolean userConsentInterfaceAvailable();
+
+ /**
+ * Must be called on UI thread, returns whether we have user consent. The result is posted to
+ * the UI thread as {@param callback}.
+ */
+ void userConsents(ValueCallback<Boolean> callback);
+}

Powered by Google App Engine
This is Rietveld 408576698