| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 27 matching lines...) Expand all Loading... |
| 38 extern const char kSyncGaiaServiceId[]; | 38 extern const char kSyncGaiaServiceId[]; |
| 39 extern const char kCloudPrintPushNotificationsSource[]; | 39 extern const char kCloudPrintPushNotificationsSource[]; |
| 40 extern const char kChromeCloudPrintProxyHeader[]; | 40 extern const char kChromeCloudPrintProxyHeader[]; |
| 41 extern const char kCloudPrintUserAgent[]; | 41 extern const char kCloudPrintUserAgent[]; |
| 42 extern const char kJobFetchReasonStartup[]; | 42 extern const char kJobFetchReasonStartup[]; |
| 43 extern const char kJobFetchReasonPoll[]; | 43 extern const char kJobFetchReasonPoll[]; |
| 44 extern const char kJobFetchReasonNotified[]; | 44 extern const char kJobFetchReasonNotified[]; |
| 45 extern const char kJobFetchReasonQueryMore[]; | 45 extern const char kJobFetchReasonQueryMore[]; |
| 46 extern const char kPrintSystemFailedMessageId[]; | 46 extern const char kPrintSystemFailedMessageId[]; |
| 47 extern const char kGetPrinterCapsFailedMessageId[]; | 47 extern const char kGetPrinterCapsFailedMessageId[]; |
| 48 extern const char kEnumPrintersFailedMessageId[]; |
| 48 | 49 |
| 49 // Max retry count for job data fetch requests. | 50 // Max retry count for job data fetch requests. |
| 50 const int kJobDataMaxRetryCount = 5; | 51 const int kJobDataMaxRetryCount = 5; |
| 51 // Max retry count (infinity) for API fetch requests. | 52 // Max retry count (infinity) for API fetch requests. |
| 52 const int kCloudPrintAPIMaxRetryCount = -1; | 53 const int kCloudPrintAPIMaxRetryCount = -1; |
| 53 | 54 |
| 54 // When we don't have XMPP notifications available, we resort to polling for | 55 // When we don't have XMPP notifications available, we resort to polling for |
| 55 // print jobs. We choose a random interval in seconds between these 2 values. | 56 // print jobs. We choose a random interval in seconds between these 2 values. |
| 56 const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds | 57 const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds |
| 57 const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds | 58 const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds |
| 58 | 59 |
| 59 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ | 60 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ |
| 60 | 61 |
| OLD | NEW |