diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-13 19:09:33 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-13 19:09:33 +0000 |
commit | b6c98a837a4af01daeaf36cf4beaa170c33df417 (patch) | |
tree | a36ffa952f27a3ac0424a880276d96b893ac78dd /chrome/service/cloud_print/cloud_print_consts.h | |
parent | 84e6824ab0c0b979c7f9eee493f1057cef419fa7 (diff) | |
download | chromium_src-b6c98a837a4af01daeaf36cf4beaa170c33df417.zip chromium_src-b6c98a837a4af01daeaf36cf4beaa170c33df417.tar.gz chromium_src-b6c98a837a4af01daeaf36cf4beaa170c33df417.tar.bz2 |
The Cloud Print proxy now handles auth errors and disables the cloud print proxy. Also we detect loss of XMPP notifications and enter a job poll mode when we don't have notifications available.
BUG=None.
TEST=Test that the cloud print proxy disables itself when the token is invalid/expired. Also when the Talk token is invalid/expired, it should enter a job poll state.
Review URL: http://codereview.chromium.org/3374007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/cloud_print/cloud_print_consts.h')
-rw-r--r-- | chrome/service/cloud_print/cloud_print_consts.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/service/cloud_print/cloud_print_consts.h b/chrome/service/cloud_print/cloud_print_consts.h index 33381dc..71f9225 100644 --- a/chrome/service/cloud_print/cloud_print_consts.h +++ b/chrome/service/cloud_print/cloud_print_consts.h @@ -43,6 +43,10 @@ const int64 kMaxRetryInterval = 5*60*1000; // 5 minutes in millseconds const int64 kBaseRetryInterval = 5*1000; // 5 seconds const int kMaxRetryCount = 2; const int64 kJobStatusUpdateInterval = 10*1000; // 10 seconds +// When we don't have XMPP notifications available, we resort to polling for +// print jobs. We choose a random interval in seconds between these 2 values. +const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds +const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ |