| 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 18 matching lines...) Expand all Loading... |
| 29 extern const char kPrinterCapsHashValue[]; | 29 extern const char kPrinterCapsHashValue[]; |
| 30 extern const char kPrinterTagsValue[]; | 30 extern const char kPrinterTagsValue[]; |
| 31 extern const char kProxyTagPrefix[]; | 31 extern const char kProxyTagPrefix[]; |
| 32 extern const char kTagsHashTagName[]; | 32 extern const char kTagsHashTagName[]; |
| 33 extern const char kDefaultCloudPrintServerUrl[]; | 33 extern const char kDefaultCloudPrintServerUrl[]; |
| 34 extern const char kGaiaUrl[]; | 34 extern const char kGaiaUrl[]; |
| 35 extern const char kCloudPrintGaiaServiceId[]; | 35 extern const char kCloudPrintGaiaServiceId[]; |
| 36 extern const char kSyncGaiaServiceId[]; | 36 extern const char kSyncGaiaServiceId[]; |
| 37 extern const char kCloudPrintPushNotificationsSource[]; | 37 extern const char kCloudPrintPushNotificationsSource[]; |
| 38 extern const char kChromeCloudPrintProxyHeader[]; | 38 extern const char kChromeCloudPrintProxyHeader[]; |
| 39 extern const char kCloudPrintAPIRetryPolicy[]; | |
| 40 extern const char kJobDataRetryPolicy[]; | |
| 41 extern const char kCloudPrintUserAgent[]; | 39 extern const char kCloudPrintUserAgent[]; |
| 42 extern const char kJobFetchReasonStartup[]; | 40 extern const char kJobFetchReasonStartup[]; |
| 43 extern const char kJobFetchReasonPoll[]; | 41 extern const char kJobFetchReasonPoll[]; |
| 44 extern const char kJobFetchReasonNotified[]; | 42 extern const char kJobFetchReasonNotified[]; |
| 45 extern const char kJobFetchReasonQueryMore[]; | 43 extern const char kJobFetchReasonQueryMore[]; |
| 46 | 44 |
| 47 // Max retry count for job data fetch requests. | 45 // Max retry count for job data fetch requests. |
| 48 const int kJobDataMaxRetryCount = 5; | 46 const int kJobDataMaxRetryCount = 5; |
| 49 // Look at CloudPrintProxyBackend::Core::CreateDefaultRetryPolicy for default | 47 // Max retry count (infinity) for API fetch requests. |
| 50 // values of the request retry policy. | 48 const int kCloudPrintAPIMaxRetryCount = -1; |
| 51 | 49 |
| 52 // When we don't have XMPP notifications available, we resort to polling for | 50 // When we don't have XMPP notifications available, we resort to polling for |
| 53 // print jobs. We choose a random interval in seconds between these 2 values. | 51 // print jobs. We choose a random interval in seconds between these 2 values. |
| 54 const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds | 52 const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds |
| 55 const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds | 53 const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds |
| 56 | 54 |
| 57 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ | 55 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ |
| 58 | 56 |
| OLD | NEW |