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

Side by Side Diff: chrome/service/cloud_print/cloud_print_consts.h

Issue 11232048: Adding XMPP ping functionality to CLoudPrint. XMPP ping and timeout is controlled thorugh Service S… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/service/cloud_print/cloud_print_proxy_backend.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 // Constant defines used in the cloud print proxy code 10 // Constant defines used in the cloud print proxy code
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Max retry count (infinity) for Registration requests. 57 // Max retry count (infinity) for Registration requests.
58 const int kCloudPrintRegisterMaxRetryCount = -1; 58 const int kCloudPrintRegisterMaxRetryCount = -1;
59 // Max retry count (infinity) for authentication requests. 59 // Max retry count (infinity) for authentication requests.
60 const int kCloudPrintAuthMaxRetryCount = -1; 60 const int kCloudPrintAuthMaxRetryCount = -1;
61 61
62 // When we don't have XMPP notifications available, we resort to polling for 62 // When we don't have XMPP notifications available, we resort to polling for
63 // print jobs. We choose a random interval in seconds between these 2 values. 63 // print jobs. We choose a random interval in seconds between these 2 values.
64 const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds 64 const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds
65 const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds 65 const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds
66 66
67 // When we have XMPP notifications available, we ping server to keep connection
68 // alive or check connection status.
69 const int kDefaultXmppPingTimeoutSecs = 5*60; // 5 minutes in seconds
70 const int kMinimumXmppPingTimeoutSecs = 2*60; // 2 minutes in seconds
71 const int kXmppPingCheckIntervalSecs = 60;
72
73 // Number of failed pings before we try to reinstablish XMPP connection.
74 const int kMaxFailedXmppPings = 2;
75
67 // The number of seconds before the OAuth2 access token is due to expire that 76 // The number of seconds before the OAuth2 access token is due to expire that
68 // we try and refresh it. 77 // we try and refresh it.
69 const int kTokenRefreshGracePeriodSecs = 5*60; // 5 minutes in seconds 78 const int kTokenRefreshGracePeriodSecs = 5*60; // 5 minutes in seconds
70 79
71 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ 80 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_
72 81
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/service/cloud_print/cloud_print_proxy_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698