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 #include "chrome/browser/local_discovery/privet_constants.h" 6 7 namespace local_discovery { 8 9 const char kPrivetKeyError[] = "error"; 10 const char kPrivetInfoKeyToken[] = "x-privet-token"; 11 const char kPrivetKeyDeviceID[] = "device_id"; 12 const char kPrivetKeyClaimURL[] = "claim_url"; 13 const char kPrivetKeyClaimToken[] = "token"; 14 const char kPrivetKeyTimeout[] = "timeout"; 15 16 const char kPrivetErrorDeviceBusy[] = "device_busy"; 17 const char kPrivetErrorPendingUserAction[] = "pending_user_action"; 18 const char kPrivetErrorInvalidXPrivetToken[] = "invalid_x_privet_token"; 19 20 const char kPrivetActionStart[] = "start"; 21 const char kPrivetActionGetClaimToken[] = "getClaimToken"; 22 const char kPrivetActionComplete[] = "complete"; 23 24 const char kPrivetActionNameInfo[] = "info"; 25 26 extern const char kPrivetDefaultDeviceType[] = "_privet._tcp.local"; 27 extern const char kPrivetSubtypeTemplate[] = "%s._sub._privet._tcp.local"; 28 29 const char kPrivetTxtKeyName[] = "ty"; 30 const char kPrivetTxtKeyDescription[] = "note"; 31 const char kPrivetTxtKeyURL[] = "url"; 32 const char kPrivetTxtKeyType[] = "type"; 33 const char kPrivetTxtKeyID[] = "id"; 34 const char kPrivetTxtKeyConnectionState[] = "cs"; 35 36 const char kPrivetConnectionStatusOnline[] = "online"; 37 const char kPrivetConnectionStatusOffline[] = "offline"; 38 const char kPrivetConnectionStatusConnecting[] = "connecting"; 39 const char kPrivetConnectionStatusNotConfigured[] = "not-configured"; 40 41 } // namespace local_discovery 42