privet_constants.h revision a1401311d1ab56c4ed0a474bd38c108f75cb0cd9
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 kPrivetTxtKeyType[]; 52extern const char kPrivetTxtKeyID[]; 53extern const char kPrivetTxtKeyConnectionState[]; 54 55extern const char kPrivetConnectionStatusOnline[]; 56extern const char kPrivetConnectionStatusOffline[]; 57extern const char kPrivetConnectionStatusConnecting[]; 58extern const char kPrivetConnectionStatusNotConfigured[]; 59 60const int kPrivetDefaultTimeout = 15; 61 62const double kPrivetMaximumTimeRandomAddition = 0.2; 63 64const int kPrivetMinimumTimeout = 2; 65 66const int kAccountIndexUseOAuth2 = -1; 67 68} // namespace local_discovery 69 70#endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_ 71