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

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

Issue 8387011: Chrome proxy refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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) 2011 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";
(...skipping 20 matching lines...) Expand all
31 const char kOAuthCodeValue[] = "authorization_code"; 31 const char kOAuthCodeValue[] = "authorization_code";
32 32
33 const char kProxyTagPrefix[] = "__cp__"; 33 const char kProxyTagPrefix[] = "__cp__";
34 const char kTagsHashTagName[] = "__cp__tagshash"; 34 const char kTagsHashTagName[] = "__cp__tagshash";
35 const char kTagDryRunFlag[] = "__cp__dry_run"; 35 const char kTagDryRunFlag[] = "__cp__dry_run";
36 36
37 37
38 const char kDefaultCloudPrintServerUrl[] = "https://www.google.com/cloudprint"; 38 const char kDefaultCloudPrintServerUrl[] = "https://www.google.com/cloudprint";
39 const char kCloudPrintGaiaServiceId[] = "cloudprint"; 39 const char kCloudPrintGaiaServiceId[] = "cloudprint";
40 const char kSyncGaiaServiceId[] = "chromiumsync"; 40 const char kSyncGaiaServiceId[] = "chromiumsync";
41 const char kProxyAuthUserAgent[] = "ChromiumBrowser";
41 const char kCloudPrintPushNotificationsSource[] = "cloudprint.google.com"; 42 const char kCloudPrintPushNotificationsSource[] = "cloudprint.google.com";
42 // The cloud print server expects the X-Google-CloudPrint-Proxy header for 43 // The cloud print server expects the X-Google-CloudPrint-Proxy header for
43 // certain requests. 44 // certain requests.
44 const char kChromeCloudPrintProxyHeader[] = "X-CloudPrint-Proxy: Chrome"; 45 const char kChromeCloudPrintProxyHeader[] = "X-CloudPrint-Proxy: Chrome";
45 46
46 // The string to be appended to the user-agent for cloudprint requests. 47 // The string to be appended to the user-agent for cloudprint requests.
47 const char kCloudPrintUserAgent[] = "GoogleCloudPrintProxy"; 48 const char kCloudPrintUserAgent[] = "GoogleCloudPrintProxy";
48 49
49 // Reasons for fetching print jobs. 50 // Reasons for fetching print jobs.
50 // Job fetch on proxy startup. 51 // Job fetch on proxy startup.
51 const char kJobFetchReasonStartup[] = "startup"; 52 const char kJobFetchReasonStartup[] = "startup";
52 // Job fetch because we are polling. 53 // Job fetch because we are polling.
53 const char kJobFetchReasonPoll[] = "poll"; 54 const char kJobFetchReasonPoll[] = "poll";
54 // Job fetch on being notified by the server. 55 // Job fetch on being notified by the server.
55 const char kJobFetchReasonNotified[] = "notified"; 56 const char kJobFetchReasonNotified[] = "notified";
56 // Job fetch after a successful print to query for more jobs. 57 // Job fetch after a successful print to query for more jobs.
57 const char kJobFetchReasonQueryMore[] = "querymore"; 58 const char kJobFetchReasonQueryMore[] = "querymore";
58 59
59 // Short message ids for diagnostic messages sent to the server. 60 // Short message ids for diagnostic messages sent to the server.
60 const char kPrintSystemFailedMessageId[] = "printsystemfail"; 61 const char kPrintSystemFailedMessageId[] = "printsystemfail";
61 const char kGetPrinterCapsFailedMessageId[] = "getprncapsfail"; 62 const char kGetPrinterCapsFailedMessageId[] = "getprncapsfail";
62 const char kEnumPrintersFailedMessageId[] = "enumfail"; 63 const char kEnumPrintersFailedMessageId[] = "enumfail";
63 64
64 const char kDefaultCloudPrintOAuthClientId[] = 65 const char kDefaultCloudPrintOAuthClientId[] =
65 "551556820943.apps.googleusercontent.com"; 66 "551556820943.apps.googleusercontent.com";
66 const char kDefaultCloudPrintOAuthClientSecret[] = "u3/mp8CgLFxh4uiX1855/MHe"; 67 const char kDefaultCloudPrintOAuthClientSecret[] = "u3/mp8CgLFxh4uiX1855/MHe";
67 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