OLD | NEW |
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 #pragma once | |
8 | 7 |
9 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
10 | 9 |
11 // Constant defines used in the cloud print proxy code | 10 // Constant defines used in the cloud print proxy code |
12 extern const char kProxyIdValue[]; | 11 extern const char kProxyIdValue[]; |
13 extern const char kPrinterNameValue[]; | 12 extern const char kPrinterNameValue[]; |
14 extern const char kPrinterDescValue[]; | 13 extern const char kPrinterDescValue[]; |
15 extern const char kPrinterCapsValue[]; | 14 extern const char kPrinterCapsValue[]; |
16 extern const char kPrinterDefaultsValue[]; | 15 extern const char kPrinterDefaultsValue[]; |
17 extern const char kPrinterStatusValue[]; | 16 extern const char kPrinterStatusValue[]; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // print jobs. We choose a random interval in seconds between these 2 values. | 61 // print jobs. We choose a random interval in seconds between these 2 values. |
63 const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds | 62 const int kMinJobPollIntervalSecs = 5*60; // 5 minutes in seconds |
64 const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds | 63 const int kMaxJobPollIntervalSecs = 8*60; // 8 minutes in seconds |
65 | 64 |
66 // The number of seconds before the OAuth2 access token is due to expire that | 65 // The number of seconds before the OAuth2 access token is due to expire that |
67 // we try and refresh it. | 66 // we try and refresh it. |
68 const int kTokenRefreshGracePeriodSecs = 5*60; // 5 minutes in seconds | 67 const int kTokenRefreshGracePeriodSecs = 5*60; // 5 minutes in seconds |
69 | 68 |
70 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ | 69 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_ |
71 | 70 |
OLD | NEW |