Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(676)

Side by Side Diff: webrtc/libjingle/session/constants.h

Issue 1175243003: Remove webrtc/libjingle/{examples,session}. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/libjingle/libjingle.gyp ('k') | webrtc/libjingle/session/constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_LIBJINGLE_SESSION_CONSTANTS_H_
12 #define WEBRTC_LIBJINGLE_SESSION_CONSTANTS_H_
13
14 #include <string>
15
16 #include "webrtc/libjingle/xmllite/qname.h"
17
18 // This file contains constants related to signaling that are used in various
19 // classes in this directory.
20
21 namespace cricket {
22
23 // NS_ == namespace
24 // QN_ == buzz::QName (namespace + name)
25 // LN_ == "local name" == QName::LocalPart()
26 // these are useful when you need to find a tag
27 // that has different namespaces (like <description> or <transport>)
28
29 extern const char NS_EMPTY[];
30 extern const char NS_JINGLE[];
31 extern const char NS_JINGLE_DRAFT[];
32 extern const char NS_GINGLE[];
33
34 enum SignalingProtocol {
35 PROTOCOL_JINGLE,
36 PROTOCOL_GINGLE,
37 PROTOCOL_HYBRID,
38 };
39
40 // actions (aka Gingle <session> or Jingle <jingle>)
41 extern const buzz::StaticQName QN_ACTION;
42 extern const char LN_INITIATOR[];
43 extern const buzz::StaticQName QN_INITIATOR;
44 extern const buzz::StaticQName QN_CREATOR;
45
46 extern const buzz::StaticQName QN_JINGLE;
47 extern const buzz::StaticQName QN_JINGLE_CONTENT;
48 extern const buzz::StaticQName QN_JINGLE_CONTENT_NAME;
49 extern const buzz::StaticQName QN_JINGLE_CONTENT_MEDIA;
50 extern const buzz::StaticQName QN_JINGLE_REASON;
51 extern const buzz::StaticQName QN_JINGLE_DRAFT_GROUP;
52 extern const buzz::StaticQName QN_JINGLE_DRAFT_GROUP_TYPE;
53 extern const char JINGLE_CONTENT_MEDIA_AUDIO[];
54 extern const char JINGLE_CONTENT_MEDIA_VIDEO[];
55 extern const char JINGLE_CONTENT_MEDIA_DATA[];
56 extern const char JINGLE_ACTION_SESSION_INITIATE[];
57 extern const char JINGLE_ACTION_SESSION_INFO[];
58 extern const char JINGLE_ACTION_SESSION_ACCEPT[];
59 extern const char JINGLE_ACTION_SESSION_TERMINATE[];
60 extern const char JINGLE_ACTION_TRANSPORT_INFO[];
61 extern const char JINGLE_ACTION_TRANSPORT_ACCEPT[];
62 extern const char JINGLE_ACTION_DESCRIPTION_INFO[];
63
64 extern const buzz::StaticQName QN_GINGLE_SESSION;
65 extern const char GINGLE_ACTION_INITIATE[];
66 extern const char GINGLE_ACTION_INFO[];
67 extern const char GINGLE_ACTION_ACCEPT[];
68 extern const char GINGLE_ACTION_REJECT[];
69 extern const char GINGLE_ACTION_TERMINATE[];
70 extern const char GINGLE_ACTION_CANDIDATES[];
71 extern const char GINGLE_ACTION_UPDATE[];
72
73 extern const char LN_ERROR[];
74 extern const buzz::StaticQName QN_GINGLE_REDIRECT;
75 extern const char STR_REDIRECT_PREFIX[];
76
77 // Session Contents (aka Gingle <session><description>
78 // or Jingle <content><description>)
79 extern const char LN_DESCRIPTION[];
80 extern const char LN_PAYLOADTYPE[];
81 extern const buzz::StaticQName QN_ID;
82 extern const buzz::StaticQName QN_SID;
83 extern const buzz::StaticQName QN_NAME;
84 extern const buzz::StaticQName QN_CLOCKRATE;
85 extern const buzz::StaticQName QN_BITRATE;
86 extern const buzz::StaticQName QN_CHANNELS;
87 extern const buzz::StaticQName QN_PARAMETER;
88 extern const char LN_NAME[];
89 extern const char LN_VALUE[];
90 extern const buzz::StaticQName QN_PAYLOADTYPE_PARAMETER_NAME;
91 extern const buzz::StaticQName QN_PAYLOADTYPE_PARAMETER_VALUE;
92 extern const char PAYLOADTYPE_PARAMETER_BITRATE[];
93 extern const char PAYLOADTYPE_PARAMETER_HEIGHT[];
94 extern const char PAYLOADTYPE_PARAMETER_WIDTH[];
95 extern const char PAYLOADTYPE_PARAMETER_FRAMERATE[];
96 extern const char LN_BANDWIDTH[];
97
98 extern const buzz::StaticQName QN_JINGLE_RTP_CONTENT;
99 extern const buzz::StaticQName QN_SSRC;
100 extern const buzz::StaticQName QN_JINGLE_RTP_PAYLOADTYPE;
101 extern const buzz::StaticQName QN_JINGLE_RTP_BANDWIDTH;
102 extern const buzz::StaticQName QN_JINGLE_RTCP_MUX;
103 extern const buzz::StaticQName QN_JINGLE_RTCP_FB;
104 extern const buzz::StaticQName QN_SUBTYPE;
105 extern const buzz::StaticQName QN_JINGLE_RTP_HDREXT;
106 extern const buzz::StaticQName QN_URI;
107
108 extern const buzz::StaticQName QN_JINGLE_DRAFT_SCTP_CONTENT;
109 extern const buzz::StaticQName QN_JINGLE_DRAFT_SCTP_STREAM;
110
111 extern const char NS_GINGLE_AUDIO[];
112 extern const buzz::StaticQName QN_GINGLE_AUDIO_CONTENT;
113 extern const buzz::StaticQName QN_GINGLE_AUDIO_PAYLOADTYPE;
114 extern const buzz::StaticQName QN_GINGLE_AUDIO_SRCID;
115 extern const char NS_GINGLE_VIDEO[];
116 extern const buzz::StaticQName QN_GINGLE_VIDEO_CONTENT;
117 extern const buzz::StaticQName QN_GINGLE_VIDEO_PAYLOADTYPE;
118 extern const buzz::StaticQName QN_GINGLE_VIDEO_SRCID;
119 extern const buzz::StaticQName QN_GINGLE_VIDEO_BANDWIDTH;
120
121 // Crypto support.
122 extern const buzz::StaticQName QN_ENCRYPTION;
123 extern const buzz::StaticQName QN_ENCRYPTION_REQUIRED;
124 extern const buzz::StaticQName QN_CRYPTO;
125 extern const buzz::StaticQName QN_GINGLE_AUDIO_CRYPTO_USAGE;
126 extern const buzz::StaticQName QN_GINGLE_VIDEO_CRYPTO_USAGE;
127 extern const buzz::StaticQName QN_CRYPTO_SUITE;
128 extern const buzz::StaticQName QN_CRYPTO_KEY_PARAMS;
129 extern const buzz::StaticQName QN_CRYPTO_TAG;
130 extern const buzz::StaticQName QN_CRYPTO_SESSION_PARAMS;
131
132 // Transports and candidates.
133 extern const char LN_TRANSPORT[];
134 extern const char LN_CANDIDATE[];
135 extern const buzz::StaticQName QN_JINGLE_P2P_TRANSPORT;
136 extern const buzz::StaticQName QN_JINGLE_P2P_CANDIDATE;
137 extern const buzz::StaticQName QN_UFRAG;
138 extern const buzz::StaticQName QN_COMPONENT;
139 extern const buzz::StaticQName QN_PWD;
140 extern const buzz::StaticQName QN_IP;
141 extern const buzz::StaticQName QN_PORT;
142 extern const buzz::StaticQName QN_NETWORK;
143 extern const buzz::StaticQName QN_GENERATION;
144 extern const buzz::StaticQName QN_PRIORITY;
145 extern const buzz::StaticQName QN_PROTOCOL;
146 extern const char ICE_CANDIDATE_TYPE_PEER_STUN[];
147 extern const char ICE_CANDIDATE_TYPE_SERVER_STUN[];
148
149 extern const buzz::StaticQName QN_FINGERPRINT;
150 extern const buzz::StaticQName QN_FINGERPRINT_ALGORITHM;
151 extern const buzz::StaticQName QN_FINGERPRINT_DIGEST;
152
153 extern const buzz::StaticQName QN_GINGLE_P2P_TRANSPORT;
154 extern const buzz::StaticQName QN_GINGLE_P2P_CANDIDATE;
155 extern const buzz::StaticQName QN_GINGLE_P2P_UNKNOWN_CHANNEL_NAME;
156 extern const buzz::StaticQName QN_GINGLE_CANDIDATE;
157 extern const buzz::StaticQName QN_ADDRESS;
158 extern const buzz::StaticQName QN_USERNAME;
159 extern const buzz::StaticQName QN_PASSWORD;
160 extern const buzz::StaticQName QN_PREFERENCE;
161 extern const char GINGLE_CANDIDATE_TYPE_STUN[];
162
163 extern const buzz::StaticQName QN_GINGLE_RAW_TRANSPORT;
164 extern const buzz::StaticQName QN_GINGLE_RAW_CHANNEL;
165
166 // terminate reasons and errors: see http://xmpp.org/extensions/xep-0166.html
167 extern const char JINGLE_ERROR_BAD_REQUEST[]; // like parse error
168 // got transport-info before session-initiate, for example
169 extern const char JINGLE_ERROR_OUT_OF_ORDER[];
170 extern const char JINGLE_ERROR_UNKNOWN_SESSION[];
171
172 // Call terminate reasons from XEP-166
173 extern const char STR_TERMINATE_DECLINE[]; // polite reject
174 extern const char STR_TERMINATE_SUCCESS[]; // polite hangup
175 extern const char STR_TERMINATE_ERROR[]; // something bad happened
176 extern const char STR_TERMINATE_INCOMPATIBLE_PARAMETERS[]; // no codecs?
177
178 // Old terminate reasons used by cricket
179 extern const char STR_TERMINATE_CALL_ENDED[];
180 extern const char STR_TERMINATE_RECIPIENT_UNAVAILABLE[];
181 extern const char STR_TERMINATE_RECIPIENT_BUSY[];
182 extern const char STR_TERMINATE_INSUFFICIENT_FUNDS[];
183 extern const char STR_TERMINATE_NUMBER_MALFORMED[];
184 extern const char STR_TERMINATE_NUMBER_DISALLOWED[];
185 extern const char STR_TERMINATE_PROTOCOL_ERROR[];
186 extern const char STR_TERMINATE_INTERNAL_SERVER_ERROR[];
187 extern const char STR_TERMINATE_UNKNOWN_ERROR[];
188
189 // Draft view and notify messages.
190 extern const char STR_JINGLE_DRAFT_CONTENT_NAME_VIDEO[];
191 extern const char STR_JINGLE_DRAFT_CONTENT_NAME_AUDIO[];
192 extern const buzz::StaticQName QN_NICK;
193 extern const buzz::StaticQName QN_TYPE;
194 extern const buzz::StaticQName QN_JINGLE_DRAFT_VIEW;
195 extern const char STR_JINGLE_DRAFT_VIEW_TYPE_NONE[];
196 extern const char STR_JINGLE_DRAFT_VIEW_TYPE_STATIC[];
197 extern const buzz::StaticQName QN_JINGLE_DRAFT_PARAMS;
198 extern const buzz::StaticQName QN_WIDTH;
199 extern const buzz::StaticQName QN_HEIGHT;
200 extern const buzz::StaticQName QN_FRAMERATE;
201 extern const buzz::StaticQName QN_JINGLE_DRAFT_STREAM;
202 extern const buzz::StaticQName QN_JINGLE_DRAFT_STREAMS;
203 extern const buzz::StaticQName QN_DISPLAY;
204 extern const buzz::StaticQName QN_CNAME;
205 extern const buzz::StaticQName QN_JINGLE_DRAFT_SSRC;
206 extern const buzz::StaticQName QN_JINGLE_DRAFT_SSRC_GROUP;
207 extern const buzz::StaticQName QN_SEMANTICS;
208 extern const buzz::StaticQName QN_JINGLE_LEGACY_NOTIFY;
209 extern const buzz::StaticQName QN_JINGLE_LEGACY_SOURCE;
210
211 // old stuff
212 #ifdef FEATURE_ENABLE_VOICEMAIL
213 extern const char NS_VOICEMAIL[];
214 extern const buzz::StaticQName QN_VOICEMAIL_REGARDING;
215 #endif
216
217 } // namespace cricket
218
219 #endif // WEBRTC_LIBJINGLE_SESSION_CONSTANTS_H_
OLDNEW
« no previous file with comments | « webrtc/libjingle/libjingle.gyp ('k') | webrtc/libjingle/session/constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698