| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_LIBJINGLE_XMPP_JID_H_ | 11 #ifndef WEBRTC_LIBJINGLE_XMPP_JID_H_ |
| 12 #define WEBRTC_LIBJINGLE_XMPP_JID_H_ | 12 #define WEBRTC_LIBJINGLE_XMPP_JID_H_ |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 #include "webrtc/libjingle/xmllite/xmlconstants.h" | 15 #include "webrtc/libjingle/xmllite/xmlconstants.h" |
| 16 #include "webrtc/base/basictypes.h" | |
| 17 | 16 |
| 18 namespace buzz { | 17 namespace buzz { |
| 19 | 18 |
| 20 // The Jid class encapsulates and provides parsing help for Jids. A Jid | 19 // The Jid class encapsulates and provides parsing help for Jids. A Jid |
| 21 // consists of three parts: the node, the domain and the resource, e.g.: | 20 // consists of three parts: the node, the domain and the resource, e.g.: |
| 22 // | 21 // |
| 23 // node@domain/resource | 22 // node@domain/resource |
| 24 // | 23 // |
| 25 // The node and resource are both optional. A valid jid is defined to have | 24 // The node and resource are both optional. A valid jid is defined to have |
| 26 // a domain. A bare jid is defined to not have a resource and a full jid | 25 // a domain. A bare jid is defined to not have a resource and a full jid |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 static char PrepDomainLabelAscii(char ch, bool *valid); | 71 static char PrepDomainLabelAscii(char ch, bool *valid); |
| 73 | 72 |
| 74 std::string node_name_; | 73 std::string node_name_; |
| 75 std::string domain_name_; | 74 std::string domain_name_; |
| 76 std::string resource_name_; | 75 std::string resource_name_; |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 } | 78 } |
| 80 | 79 |
| 81 #endif // WEBRTC_LIBJINGLE_XMPP_JID_H_ | 80 #endif // WEBRTC_LIBJINGLE_XMPP_JID_H_ |
| OLD | NEW |