Home
last modified time | relevance | path

Searched refs:XmlElement (Results 1 – 25 of 66) sorted by relevance

123

/external/chromium/third_party/libjingle/source/talk/xmllite/
Dxmlelement.cc55 XmlElement *
83 XmlElement::XmlElement(const QName & name) : in XmlElement() function in buzz::XmlElement
92 XmlElement::XmlElement(const XmlElement & elt) : in XmlElement() function in buzz::XmlElement
121 newChild = new XmlElement(*(pChild->AsElement())); in XmlElement()
131 XmlElement::XmlElement(const QName & name, bool useDefaultNs) : in XmlElement() function in buzz::XmlElement
141 XmlElement::IsTextImpl() const { in IsTextImpl()
145 XmlElement *
146 XmlElement::AsElementImpl() const { in AsElementImpl()
147 return const_cast<XmlElement *>(this); in AsElementImpl()
151 XmlElement::AsTextImpl() const { in AsTextImpl()
[all …]
Dxmlelement.h44 class XmlElement; variable
48 friend class XmlElement; variable
57 XmlElement * AsElement() { return AsElementImpl(); } in AsElement()
58 const XmlElement * AsElement() const { return AsElementImpl(); } in AsElement()
71 virtual XmlElement * AsElementImpl() const = 0;
107 virtual XmlElement * AsElementImpl() const;
115 friend class XmlElement; variable
139 class XmlElement : public XmlChild {
141 explicit XmlElement(const QName & name);
142 explicit XmlElement(const QName & name, bool useDefaultNs);
[all …]
Dxmlbuilder.h44 class XmlElement; variable
52 static XmlElement * BuildElement(XmlParseContext * pctx,
65 XmlElement * CreateElement();
68 XmlElement * BuiltElement();
71 XmlElement * pelCurrent_;
72 talk_base::scoped_ptr<XmlElement> pelRoot_;
73 talk_base::scoped_ptr<std::vector<XmlElement*> > pvParents_;
Dxmlbuilder.cc44 pvParents_(new std::vector<XmlElement *>()) { in XmlBuilder()
54 XmlElement *
61 XmlElement * pelNew = new XmlElement(tagName); in BuildElement()
94 XmlElement * pelNew = BuildElement(pctx, name, atts); in StartElement()
137 XmlElement *
142 XmlElement *
/external/chromium/third_party/libjingle/source/talk/p2p/base/
Dparsing.h48 const buzz::XmlElement* extra;
77 std::string GetXmlAttr(const buzz::XmlElement* elem,
80 std::string GetXmlAttr(const buzz::XmlElement* elem,
84 bool GetXmlAttr(const buzz::XmlElement* elem,
86 int GetXmlAttr(const buzz::XmlElement* elem,
88 void AddXmlAttr(buzz::XmlElement* elem,
90 void SetXmlBody(buzz::XmlElement* elem, uint32 u);
91 const buzz::XmlElement* GetXmlChild(const buzz::XmlElement* parent,
93 bool RequireXmlChild(const buzz::XmlElement* parent,
95 const buzz::XmlElement** child,
[all …]
Dparsing.cc55 std::string GetXmlAttr(const buzz::XmlElement* elem, in GetXmlAttr()
62 std::string GetXmlAttr(const buzz::XmlElement* elem, in GetXmlAttr()
68 bool GetXmlAttr(const buzz::XmlElement* elem, in GetXmlAttr()
76 int GetXmlAttr(const buzz::XmlElement* elem, in GetXmlAttr()
82 void AddXmlAttr(buzz::XmlElement* elem, in AddXmlAttr()
89 void SetXmlBody(buzz::XmlElement* elem, uint32 u) { in SetXmlBody()
95 const buzz::XmlElement* GetXmlChild(const buzz::XmlElement* parent, in GetXmlChild()
97 for (const buzz::XmlElement* child = parent->FirstElement(); in GetXmlChild()
107 bool RequireXmlChild(const buzz::XmlElement* parent, in RequireXmlChild()
109 const buzz::XmlElement** child, in RequireXmlChild()
[all …]
Dsessionmanager.h42 class XmlElement; variable
93 bool IsSessionMessage(const buzz::XmlElement* stanza);
100 void OnIncomingMessage(const buzz::XmlElement* stanza);
103 void OnIncomingResponse(const buzz::XmlElement* orig_stanza,
104 const buzz::XmlElement* response_stanza);
108 void OnFailedSend(const buzz::XmlElement* orig_stanza,
109 const buzz::XmlElement* error_stanza);
114 const buzz::XmlElement*> SignalOutgoingMessage;
149 std::string FindClient(const buzz::XmlElement* session);
155 void SendErrorMessage(const buzz::XmlElement* stanza,
[all …]
Dsessionmessages.cc128 bool IsJingleMessage(const buzz::XmlElement* stanza) { in IsJingleMessage()
129 const buzz::XmlElement* jingle = stanza->FirstNamed(QN_JINGLE); in IsJingleMessage()
142 bool IsGingleMessage(const buzz::XmlElement* stanza) { in IsGingleMessage()
143 const buzz::XmlElement* session = stanza->FirstNamed(QN_GINGLE_SESSION); in IsGingleMessage()
152 bool IsSessionMessage(const buzz::XmlElement* stanza) { in IsSessionMessage()
159 bool ParseGingleSessionMessage(const buzz::XmlElement* session, in ParseGingleSessionMessage()
175 bool ParseJingleSessionMessage(const buzz::XmlElement* jingle, in ParseJingleSessionMessage()
197 bool ParseHybridSessionMessage(const buzz::XmlElement* jingle, in ParseHybridSessionMessage()
207 bool ParseSessionMessage(const buzz::XmlElement* stanza, in ParseSessionMessage()
215 const buzz::XmlElement* jingle = stanza->FirstNamed(QN_JINGLE); in ParseSessionMessage()
[all …]
Dsessionmanager.cc130 bool SessionManager::IsSessionMessage(const buzz::XmlElement* stanza) { in IsSessionMessage()
147 void SessionManager::OnIncomingMessage(const buzz::XmlElement* stanza) { in OnIncomingMessage()
187 void SessionManager::OnIncomingResponse(const buzz::XmlElement* orig_stanza, in OnIncomingResponse()
188 const buzz::XmlElement* response_stanza) { in OnIncomingResponse()
194 void SessionManager::OnFailedSend(const buzz::XmlElement* orig_stanza, in OnFailedSend()
195 const buzz::XmlElement* error_stanza) { in OnFailedSend()
204 talk_base::scoped_ptr<buzz::XmlElement> synthetic_error; in OnFailedSend()
218 void SessionManager::SendErrorMessage(const buzz::XmlElement* stanza, in SendErrorMessage()
222 const buzz::XmlElement* extra_info) { in SendErrorMessage()
223 talk_base::scoped_ptr<buzz::XmlElement> msg( in SendErrorMessage()
[all …]
Dsessionmessages.h48 typedef std::vector<buzz::XmlElement*> XmlElements;
97 const buzz::XmlElement* action_elem;
99 const buzz::XmlElement* stanza;
203 bool IsSessionMessage(const buzz::XmlElement* stanza);
204 bool ParseSessionMessage(const buzz::XmlElement* stanza,
209 const buzz::XmlElement* action_elem,
214 buzz::XmlElement* stanza);
216 const buzz::XmlElement* action_elem,
229 const buzz::XmlElement* action_elem,
242 const buzz::XmlElement* action_elem,
[all …]
/external/chromium/third_party/libjingle/source/talk/examples/call/
Dfriendinvitesendtask.cc39 XmlElement* iq = new XmlElement(QN_IQ); in Send()
41 XmlElement* query = new XmlElement(QN_ROSTER_QUERY); in Send()
42 XmlElement* item = new XmlElement(QN_ROSTER_ITEM); in Send()
50 XmlElement* presence = new XmlElement(QN_PRESENCE); in Send()
53 XmlElement* invitation = new XmlElement(QN_INVITATION); in Send()
66 const XmlElement* stanza = NextStanza(); in ProcessStart()
Dpresenceouttask.cc51 XmlElement * presence = TranslateStatus(s); in SendDirected()
61 XmlElement * presence = new XmlElement(QN_PRESENCE); in SendProbe()
71 const XmlElement * stanza = NextStanza(); in ProcessStart()
81 XmlElement *
83 XmlElement * result = new XmlElement(QN_PRESENCE); in TranslateStatus()
89 result->AddElement(new XmlElement(QN_SHOW)); in TranslateStatus()
106 result->AddElement(new XmlElement(QN_STATUS)); in TranslateStatus()
112 result->AddElement(new XmlElement(QN_PRIORITY)); in TranslateStatus()
116 result->AddElement(new XmlElement(QN_CAPS_C, true)); in TranslateStatus()
131 result->AddElement(new XmlElement(kQnDelayX, true)); in TranslateStatus()
Dpresencepushtask.cc57 bool PresencePushTask::HandleStanza(const XmlElement * stanza) { in HandleStanza()
70 const XmlElement * stanza = NextStanza(); in ProcessStart()
87 const XmlElement* stanza) { in HandlePresence()
98 const XmlElement* stanza) { in HandleMucPresence()
102 const XmlElement* elem = stanza->FirstNamed(QN_MUC_USER_X); in HandleMucPresence()
114 const XmlElement* elem = stanza->FirstNamed(QN_ERROR); in HandleMucPresence()
128 void PresencePushTask::FillStatus(const Jid& from, const XmlElement* stanza, in FillStatus()
135 const XmlElement * status = stanza->FirstNamed(QN_STATUS); in FillStatus()
152 const XmlElement * priority = stanza->FirstNamed(QN_PRIORITY); in FillStatus()
160 const XmlElement * show = stanza->FirstNamed(QN_SHOW); in FillStatus()
[all …]
Dmucinvitesendtask.cc39 XmlElement* message = new XmlElement(QN_MESSAGE); in Send()
41 XmlElement* xstanza = new XmlElement(QN_MUC_USER_X); in Send()
42 XmlElement* invite = new XmlElement(QN_MUC_USER_INVITE); in Send()
53 const XmlElement* stanza = NextStanza(); in ProcessStart()
Ddiscoitemsquerytask.cc48 talk_base::scoped_ptr<XmlElement> get(MakeIq(STR_GET, to_, task_id())); in ProcessStart()
50 XmlElement* element = new XmlElement(QN_DISCO_ITEMS_QUERY, true); in ProcessStart()
64 const XmlElement* stanza = NextStanza(); in ProcessResponse()
70 const XmlElement* query = stanza->FirstNamed(QN_DISCO_ITEMS_QUERY); in ProcessResponse()
89 bool DiscoItemsQueryTask::HandleStanza(const XmlElement* stanza) { in HandleStanza()
/external/chromium/third_party/libjingle/source/talk/xmpp/
Dxmpplogintask.cc71 pvecQueuedStanzas_(new std::vector<XmlElement *>()), in XmppLoginTask()
81 XmppLoginTask::IncomingStanza(const XmlElement *element, bool isStart) { in IncomingStanza()
89 const XmlElement *
91 const XmlElement * result = pelStanza_; in NextStanza()
101 const XmlElement * element = NULL; in Advance()
158 const XmlElement * pelTls = GetFeature(QN_TLS_STARTTLS); in Advance()
162 XmlElement el(QN_TLS_STARTTLS, true); in Advance()
186 const XmlElement * pelSaslAuth = GetFeature(QN_SASL_MECHANISMS); in Advance()
193 for (const XmlElement * pelMech = in Advance()
214 XmlElement * auth = sasl_mech_->StartSaslAuth(); in Advance()
[all …]
Dxmpptask.h87 XmppReturnStatus SendStanza(const XmlElement* stanza);
89 XmppReturnStatus SendStanzaError(const XmlElement* element_original,
94 virtual bool HandleStanza(const XmlElement* stanza) { return false; } in HandleStanza()
98 virtual void QueueStanza(const XmlElement* stanza);
99 const XmlElement* NextStanza();
101 bool MatchResponseIq(const XmlElement* stanza, const Jid& to,
104 static bool MatchRequestIq(const XmlElement* stanza, const std::string& type,
106 static XmlElement *MakeIqResult(const XmlElement* query);
107 static XmlElement *MakeIq(const std::string& type,
119 std::deque<XmlElement*> stanza_queue_;
[all …]
Dxmpplogintask.h39 class XmlElement; variable
52 void IncomingStanza(const XmlElement * element, bool isStart);
53 void OutgoingStanza(const XmlElement *element);
70 const XmlElement * NextStanza();
72 bool HandleStartStream(const XmlElement * element);
73 bool HandleFeatures(const XmlElement * element);
74 const XmlElement * GetFeature(const QName & name);
81 const XmlElement * pelStanza_;
84 talk_base::scoped_ptr<XmlElement> pelFeatures_;
87 talk_base::scoped_ptr<std::vector<XmlElement *> > pvecQueuedStanzas_;
Dxmpptask.cc65 XmppReturnStatus XmppTask::SendStanza(const XmlElement* stanza) { in SendStanza()
71 XmppReturnStatus XmppTask::SendStanzaError(const XmlElement* element_original, in SendStanzaError()
88 void XmppTask::QueueStanza(const XmlElement* stanza) { in QueueStanza()
94 stanza_queue_.push_back(new XmlElement(*stanza)); in QueueStanza()
98 const XmlElement* XmppTask::NextStanza() { in NextStanza()
99 XmlElement* result = NULL; in NextStanza()
108 XmlElement* XmppTask::MakeIq(const std::string& type, in MakeIq()
111 XmlElement* result = new XmlElement(QN_IQ); in MakeIq()
121 XmlElement* XmppTask::MakeIqResult(const XmlElement * query) { in MakeIqResult()
122 XmlElement* result = new XmlElement(QN_IQ); in MakeIqResult()
[all …]
Dsaslmechanism.cc37 XmlElement *
39 return new XmlElement(QN_SASL_AUTH, true); in StartSaslAuth()
42 XmlElement *
43 SaslMechanism::HandleSaslChallenge(const XmlElement * challenge) { in HandleSaslChallenge()
44 return new XmlElement(QN_SASL_ABORT, true); in HandleSaslChallenge()
48 SaslMechanism::HandleSaslSuccess(const XmlElement * success) { in HandleSaslSuccess()
52 SaslMechanism::HandleSaslFailure(const XmlElement * failure) { in HandleSaslFailure()
Dsaslmechanism.h35 class XmlElement; variable
52 virtual XmlElement * StartSaslAuth();
56 virtual XmlElement * HandleSaslChallenge(const XmlElement * challenge);
60 virtual void HandleSaslSuccess(const XmlElement * success);
64 virtual void HandleSaslFailure(const XmlElement * failure);
Dxmppengineimpl.h134 virtual const XmlElement * GetStreamError() { return stream_error_.get(); } in GetStreamError()
154 virtual XmppReturnStatus SendStanza(const XmlElement * pelStanza);
161 virtual XmppReturnStatus SendIq(const XmlElement* pelStanza,
173 virtual XmppReturnStatus SendStanzaError(const XmlElement * pelOriginal,
191 void IncomingStanza(const XmlElement *pelStanza);
192 void IncomingStart(const XmlElement *pelStanza);
196 void InternalSendStanza(const XmlElement * pelStanza);
200 void SignalStreamError(const XmlElement * pelStreamError);
204 bool HandleIqResponse(const XmlElement * element);
212 virtual void StartStream(const XmlElement * pelStream) in StartStream()
[all …]
/external/chromium/third_party/libjingle/source/talk/session/phone/
Dmediasessionclient.cc443 bool ParseGingleAudioCodec(const buzz::XmlElement* element, AudioCodec* out) { in ParseGingleAudioCodec()
456 bool ParseGingleVideoCodec(const buzz::XmlElement* element, VideoCodec* out) { in ParseGingleVideoCodec()
470 void ParseGingleSsrc(const buzz::XmlElement* parent_elem, in ParseGingleSsrc()
473 const buzz::XmlElement* ssrc_elem = parent_elem->FirstNamed(name); in ParseGingleSsrc()
479 bool ParseCryptoParams(const buzz::XmlElement* element, in ParseCryptoParams()
507 bool ParseGingleEncryption(const buzz::XmlElement* desc, in ParseGingleEncryption()
511 for (const buzz::XmlElement* encryption = desc->FirstNamed(QN_ENCRYPTION); in ParseGingleEncryption()
517 for (const buzz::XmlElement* crypto = encryption->FirstNamed(QN_CRYPTO); in ParseGingleEncryption()
532 void ParseBandwidth(const buzz::XmlElement* parent_elem, in ParseBandwidth()
534 const buzz::XmlElement* bw_elem = GetXmlChild(parent_elem, LN_BANDWIDTH); in ParseBandwidth()
[all …]
/external/chromium/chrome/browser/sync/notifier/
Dcache_invalidation_packet_handler.cc54 const buzz::XmlElement* stanza = NextStanza(); in ProcessResponse()
68 scoped_ptr<buzz::XmlElement> response_stanza(MakeIqResult(stanza)); in ProcessResponse()
73 virtual bool HandleStanza(const buzz::XmlElement* stanza) { in HandleStanza()
86 bool IsValidCacheInvalidationIqPacket(const buzz::XmlElement* stanza) { in IsValidCacheInvalidationIqPacket()
92 bool GetCacheInvalidationIqPacketData(const buzz::XmlElement* stanza, in GetCacheInvalidationIqPacketData()
95 const buzz::XmlElement* cache_invalidation_iq_packet = in GetCacheInvalidationIqPacketData()
122 scoped_ptr<buzz::XmlElement> stanza( in ProcessStart()
135 const buzz::XmlElement* stanza = NextStanza(); in ProcessResponse()
146 virtual bool HandleStanza(const buzz::XmlElement* stanza) { in HandleStanza()
159 static buzz::XmlElement* MakeCacheInvalidationIqPacket( in MakeCacheInvalidationIqPacket()
[all …]
/external/chromium/third_party/libjingle/source/talk/session/tunnel/
Dsecuretunnelsessionclient.cc216 const buzz::XmlElement* elem, in ParseContent()
219 const buzz::XmlElement* type_elem = elem->FirstNamed(QN_SECURE_TUNNEL_TYPE); in ParseContent()
230 const buzz::XmlElement* client_cert_elem = in ParseContent()
232 const buzz::XmlElement* server_cert_elem = in ParseContent()
243 buzz::XmlElement** elem, WriteError* error) { in WriteContent()
247 buzz::XmlElement* root = in WriteContent()
248 new buzz::XmlElement(QN_SECURE_TUNNEL_DESCRIPTION, true); in WriteContent()
249 buzz::XmlElement* type_elem = new buzz::XmlElement(QN_SECURE_TUNNEL_TYPE); in WriteContent()
253 buzz::XmlElement* client_cert_elem = in WriteContent()
254 new buzz::XmlElement(QN_SECURE_TUNNEL_CLIENT_CERT); in WriteContent()
[all …]

123