privet_constants.h revision 46d4c2bc3267f3f028f39e7e311b0f89aba2e4fd
1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_ 6#define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_ 7 8namespace local_discovery { 9 10extern const char kPrivetKeyError[]; 11extern const char kPrivetInfoKeyToken[]; 12extern const char kPrivetInfoKeyAPIList[]; 13extern const char kPrivetInfoKeyID[]; 14extern const char kPrivetKeyDeviceID[]; 15extern const char kPrivetKeyClaimURL[]; 16extern const char kPrivetKeyClaimToken[]; 17extern const char kPrivetKeyTimeout[]; 18 19extern const char kPrivetActionNameInfo[]; 20 21extern const char kPrivetInfoPath[]; 22extern const char kPrivetRegisterPath[]; 23extern const char kPrivetCapabilitiesPath[]; 24extern const char kPrivetSubmitdocPath[]; 25extern const char kPrivetCreatejobPath[]; 26 27extern const char kPrivetErrorDeviceBusy[]; 28extern const char kPrivetErrorPrinterBusy[]; 29extern const char kPrivetErrorInvalidPrintJob[]; 30extern const char kPrivetErrorInvalidDocumentType[]; 31extern const char kPrivetErrorPendingUserAction[]; 32extern const char kPrivetErrorInvalidXPrivetToken[]; 33extern const char kPrivetErrorTimeout[]; 34extern const char kPrivetErrorCancel[]; 35 36extern const char kPrivetActionStart[]; 37extern const char kPrivetActionGetClaimToken[]; 38extern const char kPrivetActionComplete[]; 39extern const char kPrivetActionCancel[]; 40 41extern const char kPrivetDefaultDeviceType[]; 42extern const char kPrivetSubtypeTemplate[]; 43 44extern const char kPrivetTypePrinter[]; 45 46const double kPrivetMaximumTimeScaling = 1.2; 47 48extern const char kPrivetTxtKeyName[]; 49extern const char kPrivetTxtKeyDescription[]; 50extern const char kPrivetTxtKeyURL[]; 51extern const char kPrivetTxtKeyVersion[]; 52extern const char kPrivetTxtKeyType[]; 53extern const char kPrivetTxtKeyID[]; 54extern const char kPrivetTxtKeyConnectionState[]; 55 56extern const char kPrivetConnectionStatusOnline[]; 57extern const char kPrivetConnectionStatusOffline[]; 58extern const char kPrivetConnectionStatusConnecting[]; 59extern const char kPrivetConnectionStatusNotConfigured[]; 60 61const int kPrivetDefaultTimeout = 15; 62 63const double kPrivetMaximumTimeRandomAddition = 0.2; 64 65const int kPrivetMinimumTimeout = 2; 66 67const int kAccountIndexUseOAuth2 = -1; 68 69} // namespace local_discovery 70 71#endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_ 72