- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / local_discovery / privet_constants.cc
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 kPrivetInfoKeyAPIList[] = "api";
12 const char kPrivetInfoKeyID[] = "id";
13 const char kPrivetKeyDeviceID[] = "device_id";
14 const char kPrivetKeyClaimURL[] = "claim_url";
15 const char kPrivetKeyClaimToken[] = "token";
16 const char kPrivetKeyTimeout[] = "timeout";
17
18 const char kPrivetActionNameInfo[] = "info";
19
20 const char kPrivetErrorDeviceBusy[] = "device_busy";
21 const char kPrivetErrorPendingUserAction[] = "pending_user_action";
22 const char kPrivetErrorInvalidXPrivetToken[] = "invalid_x_privet_token";
23 const char kPrivetErrorTimeout[] = "confirmation_timeout";
24 const char kPrivetErrorCancel[] = "user_cancel";
25
26 const char kPrivetActionStart[] = "start";
27 const char kPrivetActionGetClaimToken[] = "getClaimToken";
28 const char kPrivetActionComplete[] = "complete";
29 const char kPrivetActionCancel[] = "cancel";
30
31 extern const char kPrivetDefaultDeviceType[] = "_privet._tcp.local";
32 extern const char kPrivetSubtypeTemplate[] = "%s._sub._privet._tcp.local";
33
34 const char kPrivetTxtKeyName[] = "ty";
35 const char kPrivetTxtKeyDescription[] = "note";
36 const char kPrivetTxtKeyURL[] = "url";
37 const char kPrivetTxtKeyType[] = "type";
38 const char kPrivetTxtKeyID[] = "id";
39 const char kPrivetTxtKeyConnectionState[] = "cs";
40
41 const char kPrivetConnectionStatusOnline[] = "online";
42 const char kPrivetConnectionStatusOffline[] = "offline";
43 const char kPrivetConnectionStatusConnecting[] = "connecting";
44 const char kPrivetConnectionStatusNotConfigured[] = "not-configured";
45
46 }  // namespace local_discovery