Index: chrome/service/cloud_print/cloud_print_consts.h |
diff --git a/chrome/service/cloud_print/cloud_print_consts.h b/chrome/service/cloud_print/cloud_print_consts.h |
index 2d9254eba4bfa1f18ec367ea0559ef5a2a00f360..b5fb24c6aeb27b22092bbd23fa9dc5b80d939fab 100644 |
--- a/chrome/service/cloud_print/cloud_print_consts.h |
+++ b/chrome/service/cloud_print/cloud_print_consts.h |
@@ -64,6 +64,15 @@ const int kCloudPrintAuthMaxRetryCount = -1; |
const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds |
const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds |
+// When we have XMPP notifications available, we ping server to keep connection |
+// alive or check connection status. |
+const int kDefaultXmppPingTimeoutSecs = 5*60; // 5 minutes in seconds |
+const int kMinimumXmppPingTimeoutSecs = 2*60; // 2 minutes in seconds |
+const int kXmppPingCheckIntervalSecs = 60; |
+ |
+// Number of failed pings before we try to reinstablish XMPP connection. |
+const int kMaxFailedXmppPings = 2; |
+ |
// The number of seconds before the OAuth2 access token is due to expire that |
// we try and refresh it. |
const int kTokenRefreshGracePeriodSecs = 5*60; // 5 minutes in seconds |