Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_ |
|
msw
2012/11/09 23:18:17
For a simple constants file, I'd suggest just movi
Chen Yu
2012/11/13 14:02:15
Thanks for the suggestions! I moved those not serv
msw
2012/11/17 00:22:30
I'd marginally prefer to keep all the constants de
Chen Yu
2012/11/26 12:07:06
Done.
| |
| 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 | |
| 11 extern const char kProxyIdValue[]; | |
| 12 extern const char kPrinterNameValue[]; | |
| 13 extern const char kPrinterDescValue[]; | |
| 14 extern const char kPrinterCapsValue[]; | |
| 15 extern const char kPrinterDefaultsValue[]; | |
| 16 extern const char kPrinterStatusValue[]; | |
| 17 extern const char kPrinterTagValue[]; | |
| 18 extern const char kPrinterRemoveTagValue[]; | |
| 19 extern const char kMessageTextValue[]; | |
| 20 | |
| 21 // Values in the respone JSON from the cloud print server | |
| 22 extern const char kNameValue[]; | |
| 23 extern const char kIdValue[]; | |
| 24 extern const char kTicketUrlValue[]; | |
| 25 extern const char kFileUrlValue[]; | |
| 26 extern const char kJobListValue[]; | |
| 27 extern const char kTitleValue[]; | |
| 28 extern const char kPrinterCapsHashValue[]; | |
| 29 extern const char kTagsValue[]; | |
| 30 extern const char kXMPPJidValue[]; | |
| 31 extern const char kOAuthCodeValue[]; | |
| 32 | |
| 33 extern const char kProxyTagPrefix[]; | 10 extern const char kProxyTagPrefix[]; |
| 34 extern const char kTagsHashTagName[]; | 11 extern const char kTagsHashTagName[]; |
| 35 extern const char kTagDryRunFlag[]; | 12 extern const char kTagDryRunFlag[]; |
| 36 extern const char kChromeVersionTagName[]; | |
| 37 extern const char kSystemNameTagName[]; | |
| 38 extern const char kSystemVersionTagName[]; | |
| 39 | 13 |
| 40 extern const char kCloudPrintGaiaServiceId[]; | 14 extern const char kCloudPrintGaiaServiceId[]; |
| 41 extern const char kProxyAuthUserAgent[]; | 15 extern const char kProxyAuthUserAgent[]; |
| 42 extern const char kCloudPrintPushNotificationsSource[]; | 16 extern const char kCloudPrintPushNotificationsSource[]; |
| 43 extern const char kCloudPrintUserAgent[]; | 17 extern const char kCloudPrintUserAgent[]; |
| 44 extern const char kJobFetchReasonStartup[]; | 18 extern const char kJobFetchReasonStartup[]; |
| 45 extern const char kJobFetchReasonPoll[]; | 19 extern const char kJobFetchReasonPoll[]; |
| 46 extern const char kJobFetchReasonNotified[]; | 20 extern const char kJobFetchReasonNotified[]; |
| 47 extern const char kJobFetchReasonQueryMore[]; | 21 extern const char kJobFetchReasonQueryMore[]; |
| 48 extern const char kPrintSystemFailedMessageId[]; | 22 extern const char kPrintSystemFailedMessageId[]; |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 72 | 46 |
| 73 // Number of failed pings before we try to reinstablish XMPP connection. | 47 // Number of failed pings before we try to reinstablish XMPP connection. |
| 74 const int kMaxFailedXmppPings = 2; | 48 const int kMaxFailedXmppPings = 2; |
| 75 | 49 |
| 76 // The number of seconds before the OAuth2 access token is due to expire that | 50 // The number of seconds before the OAuth2 access token is due to expire that |
| 77 // we try and refresh it. | 51 // we try and refresh it. |
| 78 const int kTokenRefreshGracePeriodSecs = 5*60; // 5 minutes in seconds | 52 const int kTokenRefreshGracePeriodSecs = 5*60; // 5 minutes in seconds |
| 79 | 53 |
| 80 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ | 54 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ |
| 81 | 55 |
| OLD | NEW |