| 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 // Constant defines used in the cloud print proxy code | 5 // Constant defines used in the cloud print proxy code |
| 6 | 6 |
| 7 #include "chrome/service/cloud_print/cloud_print_consts.h" | 7 #include "chrome/service/cloud_print/cloud_print_consts.h" |
| 8 | 8 |
| 9 const char kProxyIdValue[] = "proxy"; | 9 const char kProxyIdValue[] = "proxy"; |
| 10 const char kPrinterNameValue[] = "printer"; | 10 const char kPrinterNameValue[] = "printer"; |
| 11 const char kPrinterDescValue[] = "description"; | 11 const char kPrinterDescValue[] = "description"; |
| 12 const char kPrinterCapsValue[] = "capabilities"; | 12 const char kPrinterCapsValue[] = "capabilities"; |
| 13 const char kPrinterDefaultsValue[] = "defaults"; | 13 const char kPrinterDefaultsValue[] = "defaults"; |
| 14 const char kPrinterStatusValue[] = "status"; | 14 const char kPrinterStatusValue[] = "status"; |
| 15 const char kPrinterTagValue[] = "tag"; | 15 const char kPrinterTagValue[] = "tag"; |
| 16 const char kPrinterRemoveTagValue[] = "remove_tag"; | 16 const char kPrinterRemoveTagValue[] = "remove_tag"; |
| 17 const char kMessageTextValue[] = "message"; |
| 17 | 18 |
| 18 // Values in the respone JSON from the cloud print server | 19 // Values in the respone JSON from the cloud print server |
| 19 const char kPrinterListValue[] = "printers"; | 20 const char kPrinterListValue[] = "printers"; |
| 20 const char kSuccessValue[] = "success"; | 21 const char kSuccessValue[] = "success"; |
| 21 const char kNameValue[] = "name"; | 22 const char kNameValue[] = "name"; |
| 22 const char kIdValue[] = "id"; | 23 const char kIdValue[] = "id"; |
| 23 const char kTicketUrlValue[] = "ticketUrl"; | 24 const char kTicketUrlValue[] = "ticketUrl"; |
| 24 const char kFileUrlValue[] = "fileUrl"; | 25 const char kFileUrlValue[] = "fileUrl"; |
| 25 const char kJobListValue[] = "jobs"; | 26 const char kJobListValue[] = "jobs"; |
| 26 const char kTitleValue[] = "title"; | 27 const char kTitleValue[] = "title"; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 46 // Reasons for fetching print jobs. | 47 // Reasons for fetching print jobs. |
| 47 // Job fetch on proxy startup. | 48 // Job fetch on proxy startup. |
| 48 const char kJobFetchReasonStartup[] = "startup"; | 49 const char kJobFetchReasonStartup[] = "startup"; |
| 49 // Job fetch because we are polling. | 50 // Job fetch because we are polling. |
| 50 const char kJobFetchReasonPoll[] = "poll"; | 51 const char kJobFetchReasonPoll[] = "poll"; |
| 51 // Job fetch on being notified by the server. | 52 // Job fetch on being notified by the server. |
| 52 const char kJobFetchReasonNotified[] = "notified"; | 53 const char kJobFetchReasonNotified[] = "notified"; |
| 53 // Job fetch after a successful print to query for more jobs. | 54 // Job fetch after a successful print to query for more jobs. |
| 54 const char kJobFetchReasonQueryMore[] = "querymore"; | 55 const char kJobFetchReasonQueryMore[] = "querymore"; |
| 55 | 56 |
| 57 // Short message ids for diagnostic messages sent to the server. |
| 58 const char kPrintSystemFailedMessageId[] = "printsystemfail"; |
| 59 const char kGetPrinterCapsFailedMessageId[] = "getprncapsfail"; |
| 60 |
| OLD | NEW |