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

Unified Diff: chrome/browser/android/webapk/webapk_installer.h

Issue 2515293004: Chrome talks to Play to install WebAPKs. (Closed)
Patch Set: Make GooglePlayWebApkInstallDelegate as a singleton. 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
« no previous file with comments | « chrome/browser/android/webapk/webapk.proto ('k') | chrome/browser/android/webapk/webapk_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/webapk/webapk_installer.h
diff --git a/chrome/browser/android/webapk/webapk_installer.h b/chrome/browser/android/webapk/webapk_installer.h
index c24a66886f1d919d5d86d9a41f6c0baaeb25b304..052f988e0f7306a196e2799491ae6777f77965eb 100644
--- a/chrome/browser/android/webapk/webapk_installer.h
+++ b/chrome/browser/android/webapk/webapk_installer.h
@@ -105,6 +105,18 @@ class WebApkInstaller : public net::URLFetcherDelegate {
JNIEnv* env,
const base::android::ScopedJavaLocalRef<jstring>& java_file_path);
+ // Returns whether the Google Play install delegate is available.
+ // Note: it is possible that this delegate is null even when installing
+ // WebAPKs using Google Play is enabled.
+ virtual bool HasGooglePlayWebApkInstallDelegate();
+
+ // Called when the package name of the WebAPK is available and the install
+ // or update request is handled by Google Play.
+ virtual bool InstallOrUpdateWebApkFromGooglePlay(
+ const std::string& package_name,
+ int version,
+ const std::string& token);
+
// Called when the request to install the WebAPK is sent to Google Play.
void OnSuccess();
« no previous file with comments | « chrome/browser/android/webapk/webapk.proto ('k') | chrome/browser/android/webapk/webapk_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698