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

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

Issue 2641973003: Implement server-suggested update check backoff (Closed)
Patch Set: 2 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: 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..f15c05b97972fc0b89dec2cfb3952a3f0e18b7a9 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,7 +61,8 @@ class WebApkInstallService : public KeyedService {
void OnFinishedInstall(const GURL& web_manifest_url,
const FinishCallback& finish_callback,
bool success,
- const std::string& webapk_package_name);
+ const std::string& webapk_package_name,
+ bool less_updates);
dominickn 2017/02/14 04:13:34 relax_updates
Xi Han 2017/02/14 22:25:47 Done.
content::BrowserContext* browser_context_;

Powered by Google App Engine
This is Rietveld 408576698