| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 19 matching lines...) Expand all Loading... |
| 30 const char kTagsHashTagName[] = "__cp__tagshash"; | 30 const char kTagsHashTagName[] = "__cp__tagshash"; |
| 31 | 31 |
| 32 | 32 |
| 33 const char kDefaultCloudPrintServerUrl[] = "https://www.google.com/cloudprint"; | 33 const char kDefaultCloudPrintServerUrl[] = "https://www.google.com/cloudprint"; |
| 34 const char kGaiaUrl[] = "https://www.google.com/accounts/ClientLogin"; | 34 const char kGaiaUrl[] = "https://www.google.com/accounts/ClientLogin"; |
| 35 const char kCloudPrintGaiaServiceId[] = "cloudprint"; | 35 const char kCloudPrintGaiaServiceId[] = "cloudprint"; |
| 36 const char kSyncGaiaServiceId[] = "chromiumsync"; | 36 const char kSyncGaiaServiceId[] = "chromiumsync"; |
| 37 const char kCloudPrintPushNotificationsSource[] = "cloudprint.google.com"; | 37 const char kCloudPrintPushNotificationsSource[] = "cloudprint.google.com"; |
| 38 // The cloud print server expects the X-Google-CloudPrint-Proxy header for | 38 // The cloud print server expects the X-Google-CloudPrint-Proxy header for |
| 39 // certain requests. | 39 // certain requests. |
| 40 const char kChromeCloudPrintProxyHeader[] = "X-Google-CloudPrint-Proxy: Chrome"; | 40 const char kChromeCloudPrintProxyHeader[] = "X-CloudPrint-Proxy: Chrome"; |
| 41 | 41 |
| 42 // The string to be appended to the user-agent for cloudprint requests. | 42 // The string to be appended to the user-agent for cloudprint requests. |
| 43 const char kCloudPrintUserAgent[] = "GoogleCloudPrintProxy"; | 43 const char kCloudPrintUserAgent[] = "GoogleCloudPrintProxy"; |
| 44 | 44 |
| 45 // Reasons for fetching print jobs. | 45 // Reasons for fetching print jobs. |
| 46 // Job fetch on proxy startup. | 46 // Job fetch on proxy startup. |
| 47 const char kJobFetchReasonStartup[] = "startup"; | 47 const char kJobFetchReasonStartup[] = "startup"; |
| 48 // Job fetch because we are polling. | 48 // Job fetch because we are polling. |
| 49 const char kJobFetchReasonPoll[] = "poll"; | 49 const char kJobFetchReasonPoll[] = "poll"; |
| 50 // Job fetch on being notified by the server. | 50 // Job fetch on being notified by the server. |
| 51 const char kJobFetchReasonNotified[] = "notified"; | 51 const char kJobFetchReasonNotified[] = "notified"; |
| 52 // Job fetch after a successful print to query for more jobs. | 52 // Job fetch after a successful print to query for more jobs. |
| 53 const char kJobFetchReasonQueryMore[] = "querymore"; | 53 const char kJobFetchReasonQueryMore[] = "querymore"; |
| 54 | 54 |
| OLD | NEW |