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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstallClientDelegate.java

Issue 2515293004: Chrome talks to Play to install WebAPKs. (Closed)
Patch Set: Created 4 years, 1 month 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: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstallClientDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstallClientDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstallClientDelegate.java
new file mode 100644
index 0000000000000000000000000000000000000000..7a6277c2e8f895c60b981f267bb5bb5fc7c7c1c0
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstallClientDelegate.java
@@ -0,0 +1,26 @@
+// 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.chrome.browser.webapps;
+
+import android.os.Bundle;
+
+/**
+ * Binds to Phonesky's PlayInstallService to install WebAPKs.
+ */
+public abstract class WebApkInstallClientDelegate {
+ /**
+ * Binds to Phonesky's PlayInstallService and installs WebAPKs asynchronously.
+ * @param installPackage The package name of WebAPK to install.
+ * @param installOptions The data required by the installation.
+ * @return True if either successfully binded to the PlayInstallService or the install was
+ * started. A "true" return value does not guarantee that the install succeeds.
+ */
+ public abstract boolean installAsync(String installPackage, Bundle installOptions);
+
+ /**
+ * Destroy the delegate, cleaning up any open hooks.
+ */
+ public abstract void reset();
+}

Powered by Google App Engine
This is Rietveld 408576698