| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "chrome/common/cloud_print/cloud_print_constants.h" | 5 #include "chrome/common/cloud_print/cloud_print_constants.h" |
| 6 | 6 |
| 7 namespace cloud_print { | 7 namespace cloud_print { |
| 8 | 8 |
| 9 const char kCloudPrintUserAgent[] = "GoogleCloudPrintProxy"; | 9 const char kCloudPrintUserAgent[] = "GoogleCloudPrintProxy"; |
| 10 const char kChromeCloudPrintProxyHeader[] = "X-CloudPrint-Proxy: Chrome"; | 10 const char kChromeCloudPrintProxyHeader[] = "X-CloudPrint-Proxy: Chrome"; |
| 11 const char kCloudPrintPushNotificationsSource[] = "cloudprint.google.com"; | 11 const char kCloudPrintPushNotificationsSource[] = "cloudprint.google.com"; |
| 12 const char kCloudPrintAuth[] = "https://www.googleapis.com/auth/cloudprint"; | 12 const char kCloudPrintAuth[] = "https://www.googleapis.com/auth/cloudprint"; |
| 13 | 13 |
| 14 const char kProxyIdValue[] = "proxy"; | 14 const char kProxyIdValue[] = "proxy"; |
| 15 const char kPrinterNameValue[] = "printer"; | 15 const char kPrinterNameValue[] = "printer"; |
| 16 const char kPrinterDescValue[] = "description"; | 16 const char kPrinterDescValue[] = "description"; |
| 17 const char kPrinterCapsValue[] = "capabilities"; | 17 const char kPrinterCapsValue[] = "capabilities"; |
| 18 const char kPrinterDisplayNameValue[] = "default_display_name"; | 18 const char kPrinterDisplayNameValue[] = "default_display_name"; |
| 19 const char kPrinterDefaultsValue[] = "defaults"; | 19 const char kPrinterDefaultsValue[] = "defaults"; |
| 20 const char kPrinterStatusValue[] = "status"; | 20 const char kPrinterStatusValue[] = "status"; |
| 21 const char kPrinterTagValue[] = "tag"; | 21 const char kPrinterTagValue[] = "tag"; |
| 22 const char kPrinterRemoveTagValue[] = "remove_tag"; | 22 const char kPrinterRemoveTagValue[] = "remove_tag"; |
| 23 const char kPrinterLocalSettingsValue[] = "local_settings"; | 23 const char kPrinterLocalSettingsValue[] = "local_settings"; |
| 24 const char kMessageTextValue[] = "message"; | 24 const char kMessageTextValue[] = "message"; |
| 25 const char kUseCDD[] = "use_cdd"; | 25 const char kUseCDD[] = "use_cdd"; |
| 26 | 26 |
| 27 const char kContentTypeCDD[] = "application/json"; | 27 const char kContentTypeJSON[] = "application/json"; |
| 28 const char kContentTypePDF[] = "application/pdf"; | 28 const char kContentTypePDF[] = "application/pdf"; |
| 29 const char kContentTypeXML[] = "application/xml"; | 29 const char kContentTypeXML[] = "application/xml"; |
| 30 const char kContentTypeXPS[] = "application/vnd.ms-xpsdocument"; | 30 const char kContentTypeXPS[] = "application/vnd.ms-xpsdocument"; |
| 31 | 31 |
| 32 const char kPrintSystemFailedMessageId[] = "printsystemfail"; | 32 const char kPrintSystemFailedMessageId[] = "printsystemfail"; |
| 33 const char kGetPrinterCapsFailedMessageId[] = "getprncapsfail"; | 33 const char kGetPrinterCapsFailedMessageId[] = "getprncapsfail"; |
| 34 const char kEnumPrintersFailedMessageId[] = "enumfail"; | 34 const char kEnumPrintersFailedMessageId[] = "enumfail"; |
| 35 const char kZombiePrinterMessageId[] = "zombieprinter"; | 35 const char kZombiePrinterMessageId[] = "zombieprinter"; |
| 36 | 36 |
| 37 const char kSuccessValue[] = "success"; | 37 const char kSuccessValue[] = "success"; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 const char kJobFetchReasonQueryMore[] = "querymore"; | 70 const char kJobFetchReasonQueryMore[] = "querymore"; |
| 71 const char kJobFetchReasonFailure[] = "failure"; | 71 const char kJobFetchReasonFailure[] = "failure"; |
| 72 const char kJobFetchReasonRetry[] = "retry"; | 72 const char kJobFetchReasonRetry[] = "retry"; |
| 73 | 73 |
| 74 const char kCreateLocalSettingsXmppPingFormat[] = | 74 const char kCreateLocalSettingsXmppPingFormat[] = |
| 75 "{\"current\":{\"xmpp_timeout_value\": %d}}"; | 75 "{\"current\":{\"xmpp_timeout_value\": %d}}"; |
| 76 const char kUpdateLocalSettingsXmppPingFormat[] = | 76 const char kUpdateLocalSettingsXmppPingFormat[] = |
| 77 "{\"current\":{\"xmpp_timeout_value\": %d},\"pending\":{}}"; | 77 "{\"current\":{\"xmpp_timeout_value\": %d},\"pending\":{}}"; |
| 78 | 78 |
| 79 } // namespace cloud_print | 79 } // namespace cloud_print |
| OLD | NEW |