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.
5 #include "chrome/common/cloud_print/cloud_print_constants.h"
7 namespace cloud_print
{
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";
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 kPrinterLocalSettingsValue
[] = "local_settings";
24 const char kMessageTextValue
[] = "message";
26 const char kPrintSystemFailedMessageId
[] = "printsystemfail";
27 const char kGetPrinterCapsFailedMessageId
[] = "getprncapsfail";
28 const char kEnumPrintersFailedMessageId
[] = "enumfail";
29 const char kZombiePrinterMessageId
[] = "zombieprinter";
31 const char kSuccessValue
[] = "success";
32 const char kNameValue
[] = "name";
33 const char kDisplayNameValue
[] = "displayName";
34 const char kIdValue
[] = "id";
35 const char kTicketUrlValue
[] = "ticketUrl";
36 const char kFileUrlValue
[] = "fileUrl";
37 const char kPrinterListValue
[] = "printers";
38 const char kJobListValue
[] = "jobs";
39 const char kTitleValue
[] = "title";
40 const char kPrinterCapsHashValue
[] = "capsHash";
41 const char kTagsValue
[] = "tags";
42 const char kXMPPJidValue
[] = "xmpp_jid";
43 const char kOAuthCodeValue
[] = "authorization_code";
44 const char kCreateTimeValue
[] = "createTime";
45 const char kPrinterTypeValue
[] = "type";
46 const char kUserValue
[] = "request.user";
47 const char kUsersValue
[] = "request.users";
48 const char kLocalSettingsPendingXmppValue
[] =
49 "local_settings.pending.xmpp_timeout_value";
51 const char kNotificationUpdateSettings
[] = "/update_settings";
53 const char kChromeVersionTagName
[] = "chrome_version";
54 const char kSystemNameTagName
[] = "system_name";
55 const char kSystemVersionTagName
[] = "system_version";
57 const char kCloudPrintServiceProxyTagPrefix
[] = "__cp__";
58 const char kCloudPrintServiceTagsHashTagName
[] = "__cp__tagshash";
59 const char kCloudPrintServiceTagDryRunFlag
[] = "__cp__dry_run";
61 const char kJobFetchReasonStartup
[] = "startup";
62 const char kJobFetchReasonPoll
[] = "poll";
63 const char kJobFetchReasonNotified
[] = "notified";
64 const char kJobFetchReasonQueryMore
[] = "querymore";
65 const char kJobFetchReasonFailure
[] = "failure";
66 const char kJobFetchReasonRetry
[] = "retry";
68 const char kCreateLocalSettingsXmppPingFormat
[] =
69 "{\"current\":{\"xmpp_timeout_value\": %d}}";
70 const char kUpdateLocalSettingsXmppPingFormat
[] =
71 "{\"current\":{\"xmpp_timeout_value\": %d},\"pending\":{}}";
73 } // namespace cloud_print