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

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

Issue 2641973003: Implement server-suggested update check backoff (Closed)
Patch Set: Nits. Created 3 years, 9 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: chrome/browser/android/webapk/webapk_install_service.h
diff --git a/chrome/browser/android/webapk/webapk_install_service.h b/chrome/browser/android/webapk/webapk_install_service.h
index e22dc9aea4339ce035f0c2e10f3bda3a1b8aec69..0a4e9d9d967b28d2e751ecaac23824e949bf92d4 100644
--- a/chrome/browser/android/webapk/webapk_install_service.h
+++ b/chrome/browser/android/webapk/webapk_install_service.h
@@ -12,6 +12,7 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "chrome/browser/android/webapk/webapk_installer.h"
#include "components/keyed_service/core/keyed_service.h"
#include "url/gurl.h"
@@ -26,11 +27,7 @@ class SkBitmap;
// WebAPK on the server, download it, and install it.
class WebApkInstallService : public KeyedService {
public:
- // Called when the creation/updating of a WebAPK is finished or failed.
- // Parameters:
- // - whether the process succeeds.
- // - the package name of the WebAPK.
- using FinishCallback = base::Callback<void(bool, const std::string&)>;
+ using FinishCallback = WebApkInstaller::FinishCallback;
static WebApkInstallService* Get(content::BrowserContext* browser_context);
@@ -64,6 +61,7 @@ class WebApkInstallService : public KeyedService {
void OnFinishedInstall(const GURL& web_manifest_url,
const FinishCallback& finish_callback,
bool success,
+ bool relax_updates,
const std::string& webapk_package_name);
content::BrowserContext* browser_context_;

Powered by Google App Engine
This is Rietveld 408576698