Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: chrome/service/cloud_print/cloud_print_consts.cc

Issue 9443007: Add Chrome To Mobile Service and Views Page Action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bail on empty GetOAuth2LoginRefreshToken(). Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 const char kMessageTextValue[] = "message";
18 18
19 // Values in the respone JSON from the cloud print server 19 // Values in the respone JSON from the cloud print server
20 const char kPrinterListValue[] = "printers";
21 const char kSuccessValue[] = "success";
22 const char kNameValue[] = "name"; 20 const char kNameValue[] = "name";
23 const char kIdValue[] = "id"; 21 const char kIdValue[] = "id";
24 const char kTicketUrlValue[] = "ticketUrl"; 22 const char kTicketUrlValue[] = "ticketUrl";
25 const char kFileUrlValue[] = "fileUrl"; 23 const char kFileUrlValue[] = "fileUrl";
26 const char kJobListValue[] = "jobs"; 24 const char kJobListValue[] = "jobs";
27 const char kTitleValue[] = "title"; 25 const char kTitleValue[] = "title";
28 const char kPrinterCapsHashValue[] = "capsHash"; 26 const char kPrinterCapsHashValue[] = "capsHash";
29 const char kTagsValue[] = "tags"; 27 const char kTagsValue[] = "tags";
30 const char kXMPPJidValue[] = "xmpp_jid"; 28 const char kXMPPJidValue[] = "xmpp_jid";
31 const char kOAuthCodeValue[] = "authorization_code"; 29 const char kOAuthCodeValue[] = "authorization_code";
32 30
33 const char kProxyTagPrefix[] = "__cp__"; 31 const char kProxyTagPrefix[] = "__cp__";
34 const char kTagsHashTagName[] = "__cp__tagshash"; 32 const char kTagsHashTagName[] = "__cp__tagshash";
35 const char kTagDryRunFlag[] = "__cp__dry_run"; 33 const char kTagDryRunFlag[] = "__cp__dry_run";
36 34
37
38 const char kDefaultCloudPrintServerUrl[] = "https://www.google.com/cloudprint"; 35 const char kDefaultCloudPrintServerUrl[] = "https://www.google.com/cloudprint";
39 const char kCloudPrintGaiaServiceId[] = "cloudprint"; 36 const char kCloudPrintGaiaServiceId[] = "cloudprint";
40 const char kSyncGaiaServiceId[] = "chromiumsync"; 37 const char kSyncGaiaServiceId[] = "chromiumsync";
41 const char kProxyAuthUserAgent[] = "ChromiumBrowser"; 38 const char kProxyAuthUserAgent[] = "ChromiumBrowser";
42 const char kCloudPrintPushNotificationsSource[] = "cloudprint.google.com"; 39 const char kCloudPrintPushNotificationsSource[] = "cloudprint.google.com";
43 // The cloud print server expects the X-Google-CloudPrint-Proxy header for
44 // certain requests.
45 const char kChromeCloudPrintProxyHeader[] = "X-CloudPrint-Proxy: Chrome";
46 40
47 // The string to be appended to the user-agent for cloudprint requests. 41 // The string to be appended to the user-agent for cloudprint requests.
48 const char kCloudPrintUserAgent[] = "GoogleCloudPrintProxy"; 42 const char kCloudPrintUserAgent[] = "GoogleCloudPrintProxy";
49 43
50 // Reasons for fetching print jobs. 44 // Reasons for fetching print jobs.
51 // Job fetch on proxy startup. 45 // Job fetch on proxy startup.
52 const char kJobFetchReasonStartup[] = "startup"; 46 const char kJobFetchReasonStartup[] = "startup";
53 // Job fetch because we are polling. 47 // Job fetch because we are polling.
54 const char kJobFetchReasonPoll[] = "poll"; 48 const char kJobFetchReasonPoll[] = "poll";
55 // Job fetch on being notified by the server. 49 // Job fetch on being notified by the server.
56 const char kJobFetchReasonNotified[] = "notified"; 50 const char kJobFetchReasonNotified[] = "notified";
57 // Job fetch after a successful print to query for more jobs. 51 // Job fetch after a successful print to query for more jobs.
58 const char kJobFetchReasonQueryMore[] = "querymore"; 52 const char kJobFetchReasonQueryMore[] = "querymore";
59 53
60 // Short message ids for diagnostic messages sent to the server. 54 // Short message ids for diagnostic messages sent to the server.
61 const char kPrintSystemFailedMessageId[] = "printsystemfail"; 55 const char kPrintSystemFailedMessageId[] = "printsystemfail";
62 const char kGetPrinterCapsFailedMessageId[] = "getprncapsfail"; 56 const char kGetPrinterCapsFailedMessageId[] = "getprncapsfail";
63 const char kEnumPrintersFailedMessageId[] = "enumfail"; 57 const char kEnumPrintersFailedMessageId[] = "enumfail";
64 58
65 const char kDefaultCloudPrintOAuthClientId[] = 59 const char kDefaultCloudPrintOAuthClientId[] =
66 "551556820943.apps.googleusercontent.com"; 60 "551556820943.apps.googleusercontent.com";
67 const char kDefaultCloudPrintOAuthClientSecret[] = "u3/mp8CgLFxh4uiX1855/MHe"; 61 const char kDefaultCloudPrintOAuthClientSecret[] = "u3/mp8CgLFxh4uiX1855/MHe";
68
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_consts.h ('k') | chrome/service/cloud_print/cloud_print_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698