summaryrefslogtreecommitdiffstats
path: root/chrome/service/cloud_print/cloud_print_consts.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/service/cloud_print/cloud_print_consts.h')
-rw-r--r--chrome/service/cloud_print/cloud_print_consts.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/chrome/service/cloud_print/cloud_print_consts.h b/chrome/service/cloud_print/cloud_print_consts.h
new file mode 100644
index 0000000..126f58e
--- /dev/null
+++ b/chrome/service/cloud_print/cloud_print_consts.h
@@ -0,0 +1,41 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_
+#define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_
+
+#include "base/basictypes.h"
+
+// Constant defines used in the cloud print proxy code
+extern const char kProxyIdValue[];
+extern const char kPrinterNameValue[];
+extern const char kPrinterDescValue[];
+extern const char kPrinterCapsValue[];
+extern const char kPrinterDefaultsValue[];
+extern const char kPrinterStatusValue[];
+// Values in the respone JSON from the cloud print server
+extern const wchar_t kPrinterListValue[];
+extern const wchar_t kSuccessValue[];
+extern const wchar_t kNameValue[];
+extern const wchar_t kIdValue[];
+extern const wchar_t kTicketUrlValue[];
+extern const wchar_t kFileUrlValue[];
+extern const wchar_t kJobListValue[];
+extern const wchar_t kTitleValue[];
+extern const wchar_t kPrinterCapsHashValue[];
+
+extern const char kCloudPrintServerUrl[];
+extern const char kCloudPrintTalkServiceUrl[];
+extern const char kGaiaUrl[];
+extern const char kCloudPrintGaiaServiceId[];
+extern const char kSyncGaiaServiceId[];
+
+// Max interval between retrying connection to the server
+const int64 kMaxRetryInterval = 5*60*1000; // 5 minutes in millseconds
+const int64 kBaseRetryInterval = 5*1000; // 5 seconds
+const int kMaxRetryCount = 5;
+const int64 kJobStatusUpdateInterval = 10*1000; // 10 seconds
+
+#endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONSTS_H_
+