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 3 // found in the LICENSE file. 4 5 #include "chrome/common/cloud_print/cloud_print_constants.h" 6 7 namespace cloud_print { 8 9 const char kCloudPrintUserAgent[] = "GoogleCloudPrintProxy"; 10 const char kChromeCloudPrintProxyHeader[] = "X-CloudPrint-Proxy: Chrome"; 11 const char kCloudPrintPushNotificationsSource[] = "cloudprint.google.com"; 12 const char kCloudPrintAuth[] = "https://www.googleapis.com/auth/cloudprint"; 13 14 const char kProxyIdValue[] = "proxy"; 15 const char kPrinterNameValue[] = "printer"; 16 const char kPrinterDescValue[] = "description"; 17 const char kPrinterCapsValue[] = "capabilities"; 18 const char kPrinterDisplayNameValue[] = "default_display_name"; 19 const char kPrinterDefaultsValue[] = "defaults"; 20 const char kPrinterStatusValue[] = "status"; 21 const char kPrinterTagValue[] = "tag"; 22 const char kPrinterRemoveTagValue[] = "remove_tag"; 23 const char kMessageTextValue[] = "message"; 24 25 const char kPrintSystemFailedMessageId[] = "printsystemfail"; 26 const char kGetPrinterCapsFailedMessageId[] = "getprncapsfail"; 27 const char kEnumPrintersFailedMessageId[] = "enumfail"; 28 const char kZombiePrinterMessageId[] = "zombieprinter"; 29 30 const char kSuccessValue[] = "success"; 31 const char kNameValue[] = "name"; 32 const char kIdValue[] = "id"; 33 const char kTicketUrlValue[] = "ticketUrl"; 34 const char kFileUrlValue[] = "fileUrl"; 35 const char kPrinterListValue[] = "printers"; 36 const char kJobListValue[] = "jobs"; 37 const char kTitleValue[] = "title"; 38 const char kPrinterCapsHashValue[] = "capsHash"; 39 const char kTagsValue[] = "tags"; 40 const char kXMPPJidValue[] = "xmpp_jid"; 41 const char kOAuthCodeValue[] = "authorization_code"; 42 const char kCreateTimeValue[] = "createTime"; 43 const char kPrinterTypeValue[] = "type"; 44 45 const char kChromeVersionTagName[] = "chrome_version"; 46 const char kSystemNameTagName[] = "system_name"; 47 const char kSystemVersionTagName[] = "system_version"; 48 49 const char kCloudPrintServiceProxyTagPrefix[] = "__cp__"; 50 const char kCloudPrintServiceTagsHashTagName[] = "__cp__tagshash"; 51 const char kCloudPrintServiceTagDryRunFlag[] = "__cp__dry_run"; 52 53 const char kJobFetchReasonStartup[] = "startup"; 54 const char kJobFetchReasonPoll[] = "poll"; 55 const char kJobFetchReasonNotified[] = "notified"; 56 const char kJobFetchReasonQueryMore[] = "querymore"; 57 const char kJobFetchReasonFailure[] = "failure"; 58 const char kJobFetchReasonRetry[] = "retry"; 59 60 } // namespace cloud_print 61