Roll src/third_party/WebKit 6f84130:7353389 (svn 184386:184391)
[chromium-blink-merge.git] / chrome / common / cloud_print / cloud_print_constants.cc
blobe9a641e1c47641a391c89b0b64b25351f0e69f9e
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";
13 const char kProxyIdValue[] = "proxy";
14 const char kPrinterNameValue[] = "printer";
15 const char kPrinterDescValue[] = "description";
16 const char kPrinterCapsValue[] = "capabilities";
17 const char kPrinterDisplayNameValue[] = "default_display_name";
18 const char kPrinterDefaultsValue[] = "defaults";
19 const char kPrinterStatusValue[] = "status";
20 const char kPrinterTagValue[] = "tag";
21 const char kPrinterRemoveTagValue[] = "remove_tag";
22 const char kPrinterLocalSettingsValue[] = "local_settings";
23 const char kMessageTextValue[] = "message";
24 const char kUseCDD[] = "use_cdd";
26 const char kContentTypeJSON[] = "application/json";
27 const char kContentTypePDF[] = "application/pdf";
28 const char kContentTypeXML[] = "application/xml";
29 const char kContentTypeXPS[] = "application/vnd.ms-xpsdocument";
31 const char kPrintSystemFailedMessageId[] = "printsystemfail";
32 const char kGetPrinterCapsFailedMessageId[] = "getprncapsfail";
33 const char kEnumPrintersFailedMessageId[] = "enumfail";
34 const char kZombiePrinterMessageId[] = "zombieprinter";
36 const char kSuccessValue[] = "success";
37 const char kNameValue[] = "name";
38 const char kDisplayNameValue[] = "displayName";
39 const char kIdValue[] = "id";
40 const char kTicketUrlValue[] = "ticketUrl";
41 const char kFileUrlValue[] = "fileUrl";
42 const char kPrinterListValue[] = "printers";
43 const char kJobListValue[] = "jobs";
44 const char kTitleValue[] = "title";
45 const char kPrinterCapsHashValue[] = "capsHash";
46 const char kTagsValue[] = "tags";
47 const char kXMPPJidValue[] = "xmpp_jid";
48 const char kOAuthCodeValue[] = "authorization_code";
49 const char kCreateTimeValue[] = "createTime";
50 const char kPrinterTypeValue[] = "type";
51 const char kUserValue[] = "request.user";
52 const char kUsersValue[] = "request.users";
53 const char kLocalSettingsPendingXmppValue[] =
54 "local_settings.pending.xmpp_timeout_value";
56 const char kNotificationUpdateSettings[] = "/update_settings";
58 const char kChromeVersionTagName[] = "chrome_version";
59 const char kSystemNameTagName[] = "system_name";
60 const char kSystemVersionTagName[] = "system_version";
62 const char kCloudPrintServiceProxyTagPrefix[] = "__cp__";
63 const char kCloudPrintServiceTagsHashTagName[] = "__cp__tagshash";
64 const char kCloudPrintServiceTagDryRunFlag[] = "__cp__dry_run";
66 const char kJobFetchReasonStartup[] = "startup";
67 const char kJobFetchReasonPoll[] = "poll";
68 const char kJobFetchReasonNotified[] = "notified";
69 const char kJobFetchReasonQueryMore[] = "querymore";
70 const char kJobFetchReasonFailure[] = "failure";
71 const char kJobFetchReasonRetry[] = "retry";
73 const char kCreateLocalSettingsXmppPingFormat[] =
74 "{\"current\":{\"xmpp_timeout_value\": %d}}";
75 const char kUpdateLocalSettingsXmppPingFormat[] =
76 "{\"current\":{\"xmpp_timeout_value\": %d},\"pending\":{}}";
78 } // namespace cloud_print