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 | 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 |
11 extern const char kProxyIdValue[]; | 11 extern const char kProxyIdValue[]; |
12 extern const char kPrinterNameValue[]; | 12 extern const char kPrinterNameValue[]; |
13 extern const char kPrinterDescValue[]; | 13 extern const char kPrinterDescValue[]; |
14 extern const char kPrinterCapsValue[]; | 14 extern const char kPrinterCapsValue[]; |
15 extern const char kPrinterDefaultsValue[]; | 15 extern const char kPrinterDefaultsValue[]; |
16 extern const char kPrinterStatusValue[]; | 16 extern const char kPrinterStatusValue[]; |
| 17 extern const char kPrinterTagValue[]; |
17 // Values in the respone JSON from the cloud print server | 18 // Values in the respone JSON from the cloud print server |
18 extern const wchar_t kPrinterListValue[]; | 19 extern const wchar_t kPrinterListValue[]; |
19 extern const wchar_t kSuccessValue[]; | 20 extern const wchar_t kSuccessValue[]; |
20 extern const wchar_t kNameValue[]; | 21 extern const wchar_t kNameValue[]; |
21 extern const wchar_t kIdValue[]; | 22 extern const wchar_t kIdValue[]; |
22 extern const wchar_t kTicketUrlValue[]; | 23 extern const wchar_t kTicketUrlValue[]; |
23 extern const wchar_t kFileUrlValue[]; | 24 extern const wchar_t kFileUrlValue[]; |
24 extern const wchar_t kJobListValue[]; | 25 extern const wchar_t kJobListValue[]; |
25 extern const wchar_t kTitleValue[]; | 26 extern const wchar_t kTitleValue[]; |
26 extern const wchar_t kPrinterCapsHashValue[]; | 27 extern const wchar_t kPrinterCapsHashValue[]; |
27 | 28 |
28 extern const char kDefaultCloudPrintServerUrl[]; | 29 extern const char kDefaultCloudPrintServerUrl[]; |
29 extern const char kCloudPrintTalkServiceUrl[]; | 30 extern const char kCloudPrintTalkServiceUrl[]; |
30 extern const char kGaiaUrl[]; | 31 extern const char kGaiaUrl[]; |
31 extern const char kCloudPrintGaiaServiceId[]; | 32 extern const char kCloudPrintGaiaServiceId[]; |
32 extern const char kSyncGaiaServiceId[]; | 33 extern const char kSyncGaiaServiceId[]; |
33 | 34 |
34 // Max interval between retrying connection to the server | 35 // Max interval between retrying connection to the server |
35 const int64 kMaxRetryInterval = 5*60*1000; // 5 minutes in millseconds | 36 const int64 kMaxRetryInterval = 5*60*1000; // 5 minutes in millseconds |
36 const int64 kBaseRetryInterval = 5*1000; // 5 seconds | 37 const int64 kBaseRetryInterval = 5*1000; // 5 seconds |
37 const int kMaxRetryCount = 5; | 38 const int kMaxRetryCount = 5; |
38 const int64 kJobStatusUpdateInterval = 10*1000; // 10 seconds | 39 const int64 kJobStatusUpdateInterval = 10*1000; // 10 seconds |
39 | 40 |
40 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ | 41 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ |
41 | 42 |
OLD | NEW |