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

Unified Diff: omaha_request_action.h

Issue 3275006: AU: Implement server-dictated poll interval. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: rebase to head Created 10 years, 4 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
« no previous file with comments | « no previous file | omaha_request_action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: omaha_request_action.h
diff --git a/omaha_request_action.h b/omaha_request_action.h
index 7533d14b717582e6cf711ec03cfd59a8e6078ae0..1f72025b3656cdac3f389cbbec65578280def0d5 100644
--- a/omaha_request_action.h
+++ b/omaha_request_action.h
@@ -11,9 +11,9 @@
#include <string>
+#include <base/scoped_ptr.h>
#include <curl/curl.h>
-#include "base/scoped_ptr.h"
#include "update_engine/action.h"
#include "update_engine/http_fetcher.h"
@@ -30,10 +30,17 @@ std::string XmlEncode(const std::string& input);
// These strings in this struct are not XML escaped.
struct OmahaResponse {
OmahaResponse()
- : update_exists(false), size(0), needs_admin(false), prompt(false) {}
+ : update_exists(false),
+ poll_interval(0),
+ size(0),
+ needs_admin(false),
+ prompt(false) {}
// True iff there is an update to be downloaded.
bool update_exists;
+ // If non-zero, server-dictated poll frequency in seconds.
+ int poll_interval;
+
// These are only valid if update_exists is true:
std::string display_version;
std::string codebase;
« no previous file with comments | « no previous file | omaha_request_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698