12a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Copyright 2012 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 52a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#include "chrome/common/cloud_print/cloud_print_constants.h" 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 72a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)namespace cloud_print { 82a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kCloudPrintUserAgent[] = "GoogleCloudPrintProxy"; 102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kChromeCloudPrintProxyHeader[] = "X-CloudPrint-Proxy: Chrome"; 112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kCloudPrintPushNotificationsSource[] = "cloudprint.google.com"; 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProxyIdValue[] = "proxy"; 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrinterNameValue[] = "printer"; 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrinterDescValue[] = "description"; 165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrinterCapsValue[] = "capabilities"; 17c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kPrinterDisplayNameValue[] = "default_display_name"; 185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrinterDefaultsValue[] = "defaults"; 195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrinterStatusValue[] = "status"; 205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrinterTagValue[] = "tag"; 215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrinterRemoveTagValue[] = "remove_tag"; 2268043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kPrinterLocalSettingsValue[] = "local_settings"; 235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMessageTextValue[] = "message"; 245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kUseCDD[] = "use_cdd"; 255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kContentTypeJSON[] = "application/json"; 275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kContentTypePDF[] = "application/pdf"; 285d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kContentTypeXML[] = "application/xml"; 295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kContentTypeXPS[] = "application/vnd.ms-xpsdocument"; 305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPrintSystemFailedMessageId[] = "printsystemfail"; 322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kGetPrinterCapsFailedMessageId[] = "getprncapsfail"; 332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnumPrintersFailedMessageId[] = "enumfail"; 342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kZombiePrinterMessageId[] = "zombieprinter"; 352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSuccessValue[] = "success"; 375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNameValue[] = "name"; 3858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisplayNameValue[] = "displayName"; 395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIdValue[] = "id"; 405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTicketUrlValue[] = "ticketUrl"; 415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kFileUrlValue[] = "fileUrl"; 422a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPrinterListValue[] = "printers"; 435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kJobListValue[] = "jobs"; 445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTitleValue[] = "title"; 455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrinterCapsHashValue[] = "capsHash"; 465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTagsValue[] = "tags"; 475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kXMPPJidValue[] = "xmpp_jid"; 485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOAuthCodeValue[] = "authorization_code"; 492a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kCreateTimeValue[] = "createTime"; 502a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPrinterTypeValue[] = "type"; 5158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kUserValue[] = "request.user"; 5258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kUsersValue[] = "request.users"; 5368043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kLocalSettingsPendingXmppValue[] = 5468043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) "local_settings.pending.xmpp_timeout_value"; 5568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) 5668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kNotificationUpdateSettings[] = "/update_settings"; 575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kChromeVersionTagName[] = "chrome_version"; 595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSystemNameTagName[] = "system_name"; 605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSystemVersionTagName[] = "system_version"; 615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kCloudPrintServiceProxyTagPrefix[] = "__cp__"; 632a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kCloudPrintServiceTagsHashTagName[] = "__cp__tagshash"; 642a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kCloudPrintServiceTagDryRunFlag[] = "__cp__dry_run"; 655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kJobFetchReasonStartup[] = "startup"; 675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kJobFetchReasonPoll[] = "poll"; 685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kJobFetchReasonNotified[] = "notified"; 695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kJobFetchReasonQueryMore[] = "querymore"; 702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kJobFetchReasonFailure[] = "failure"; 712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kJobFetchReasonRetry[] = "retry"; 722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 7368043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kCreateLocalSettingsXmppPingFormat[] = 7468043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) "{\"current\":{\"xmpp_timeout_value\": %d}}"; 7568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kUpdateLocalSettingsXmppPingFormat[] = 7668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) "{\"current\":{\"xmpp_timeout_value\": %d},\"pending\":{}}"; 7768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) 782a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)} // namespace cloud_print 79