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

Unified Diff: chrome/service/cloud_print/cloud_print_consts.h

Issue 4165013: Re-landing issue 4202006 (http://codereview.chromium.org/4202006/show) which ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 2 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 | « chrome/chrome_tests.gypi ('k') | chrome/service/cloud_print/cloud_print_consts.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_consts.h
===================================================================
--- chrome/service/cloud_print/cloud_print_consts.h (revision 64444)
+++ chrome/service/cloud_print/cloud_print_consts.h (working copy)
@@ -36,11 +36,14 @@
extern const char kSyncGaiaServiceId[];
extern const char kCloudPrintPushNotificationsSource[];
extern const char kChromeCloudPrintProxyHeader[];
-// Max interval between retrying connection to the server
-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
+extern const char kCloudPrintAPIRetryPolicy[];
+extern const char kJobDataRetryPolicy[];
+
+// Max retry count for job data fetch requests.
+const int kJobDataMaxRetryCount = 5;
+// Look at CloudPrintProxyBackend::Core::CreateDefaultRetryPolicy for default
+// values of the request retry policy.
+
// 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/service/cloud_print/cloud_print_consts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698