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

Unified Diff: chrome/browser/android/webapk/webapk_installer.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_installer.h
diff --git a/chrome/browser/android/webapk/webapk_installer.h b/chrome/browser/android/webapk/webapk_installer.h
index d47d75228d539b788b2933098541c2cca742e5b2..b3d8176b59f48d54b50328930d6b340117334229 100644
--- a/chrome/browser/android/webapk/webapk_installer.h
+++ b/chrome/browser/android/webapk/webapk_installer.h
@@ -43,7 +43,9 @@ class WebApkInstaller : public net::URLFetcherDelegate {
// Parameters:
// - whether the process succeeds.
// - the package name of the WebAPK.
- using FinishCallback = base::Callback<void(bool, const std::string&)>;
+ // - true if Chrome received a "request updates less frequently" directive
+ // from the WebAPK server.
+ using FinishCallback = base::Callback<void(bool, bool, const std::string&)>;
~WebApkInstaller() override;
@@ -270,6 +272,9 @@ class WebApkInstaller : public net::URLFetcherDelegate {
// WebAPK package name.
std::string webapk_package_;
+ // Whether the server wants the WebAPK to request updates less frequently.
+ bool relax_updates_;
+
// WebAPK version code.
int webapk_version_;

Powered by Google App Engine
This is Rietveld 408576698