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

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

Issue 10836278: Add additional logging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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) 2012 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 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 // Constant defines used in the cloud print proxy code 10 // Constant defines used in the cloud print proxy code
(...skipping 27 matching lines...) Expand all
38 extern const char kProxyAuthUserAgent[]; 38 extern const char kProxyAuthUserAgent[];
39 extern const char kCloudPrintPushNotificationsSource[]; 39 extern const char kCloudPrintPushNotificationsSource[];
40 extern const char kCloudPrintUserAgent[]; 40 extern const char kCloudPrintUserAgent[];
41 extern const char kJobFetchReasonStartup[]; 41 extern const char kJobFetchReasonStartup[];
42 extern const char kJobFetchReasonPoll[]; 42 extern const char kJobFetchReasonPoll[];
43 extern const char kJobFetchReasonNotified[]; 43 extern const char kJobFetchReasonNotified[];
44 extern const char kJobFetchReasonQueryMore[]; 44 extern const char kJobFetchReasonQueryMore[];
45 extern const char kPrintSystemFailedMessageId[]; 45 extern const char kPrintSystemFailedMessageId[];
46 extern const char kGetPrinterCapsFailedMessageId[]; 46 extern const char kGetPrinterCapsFailedMessageId[];
47 extern const char kEnumPrintersFailedMessageId[]; 47 extern const char kEnumPrintersFailedMessageId[];
48 extern const char kZombiePrinterMessageId[];
48 extern const char kDefaultCloudPrintOAuthClientId[]; 49 extern const char kDefaultCloudPrintOAuthClientId[];
49 extern const char kDefaultCloudPrintOAuthClientSecret[]; 50 extern const char kDefaultCloudPrintOAuthClientSecret[];
50 51
51 // Max retry count for job data fetch requests. 52 // Max retry count for job data fetch requests.
52 const int kJobDataMaxRetryCount = 5; 53 const int kJobDataMaxRetryCount = 5;
53 // Max retry count (infinity) for API fetch requests. 54 // Max retry count (infinity) for API fetch requests.
54 const int kCloudPrintAPIMaxRetryCount = -1; 55 const int kCloudPrintAPIMaxRetryCount = -1;
55 // Max retry count (infinity) for Registration requests. 56 // Max retry count (infinity) for Registration requests.
56 const int kCloudPrintRegisterMaxRetryCount = -1; 57 const int kCloudPrintRegisterMaxRetryCount = -1;
57 // Max retry count (infinity) for authentication requests. 58 // Max retry count (infinity) for authentication requests.
58 const int kCloudPrintAuthMaxRetryCount = -1; 59 const int kCloudPrintAuthMaxRetryCount = -1;
59 60
60 // When we don't have XMPP notifications available, we resort to polling for 61 // When we don't have XMPP notifications available, we resort to polling for
61 // print jobs. We choose a random interval in seconds between these 2 values. 62 // print jobs. We choose a random interval in seconds between these 2 values.
62 const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds 63 const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds
63 const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds 64 const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds
64 65
65 // The number of seconds before the OAuth2 access token is due to expire that 66 // The number of seconds before the OAuth2 access token is due to expire that
66 // we try and refresh it. 67 // we try and refresh it.
67 const int kTokenRefreshGracePeriodSecs = 5*60; // 5 minutes in seconds 68 const int kTokenRefreshGracePeriodSecs = 5*60; // 5 minutes in seconds
68 69
69 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ 70 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_
70 71
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_connector.cc ('k') | chrome/service/cloud_print/cloud_print_consts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698