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; |