OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 extern const char kGetPrinterCapsFailedMessageId[]; | 49 extern const char kGetPrinterCapsFailedMessageId[]; |
50 extern const char kEnumPrintersFailedMessageId[]; | 50 extern const char kEnumPrintersFailedMessageId[]; |
51 extern const char kDefaultCloudPrintOAuthClientId[]; | 51 extern const char kDefaultCloudPrintOAuthClientId[]; |
52 extern const char kDefaultCloudPrintOAuthClientSecret[]; | 52 extern const char kDefaultCloudPrintOAuthClientSecret[]; |
53 | 53 |
54 | 54 |
55 // Max retry count for job data fetch requests. | 55 // Max retry count for job data fetch requests. |
56 const int kJobDataMaxRetryCount = 5; | 56 const int kJobDataMaxRetryCount = 5; |
57 // Max retry count (infinity) for API fetch requests. | 57 // Max retry count (infinity) for API fetch requests. |
58 const int kCloudPrintAPIMaxRetryCount = -1; | 58 const int kCloudPrintAPIMaxRetryCount = -1; |
| 59 // Max retry count (infinity) for Registration requests. |
| 60 const int kCloudPrintRegisterMaxRetryCount = -1; |
| 61 // Max retry count (infinity) for authentication requests. |
| 62 const int kCloudPrintAuthMaxRetryCount = -1; |
59 | 63 |
60 // When we don't have XMPP notifications available, we resort to polling for | 64 // When we don't have XMPP notifications available, we resort to polling for |
61 // print jobs. We choose a random interval in seconds between these 2 values. | 65 // print jobs. We choose a random interval in seconds between these 2 values. |
62 const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds | 66 const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds |
63 const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds | 67 const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds |
64 | 68 |
65 // The number of seconds before the OAuth2 access token is due to expire that | 69 // The number of seconds before the OAuth2 access token is due to expire that |
66 // we try and refresh it. | 70 // we try and refresh it. |
67 const int kTokenRefreshGracePeriodSecs = 5*60; // 5 minutes in seconds | 71 const int kTokenRefreshGracePeriodSecs = 5*60; // 5 minutes in seconds |
68 | 72 |
69 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ | 73 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ |
70 | 74 |
OLD | NEW |