/external/chromium_org/jingle/notifier/listener/ |
H A D | xml_element_util.cc | 18 std::string XmlElementToString(const buzz::XmlElement& xml_element) { 20 buzz::XmlPrinter::PrintXml(&xml_stream, &xml_element); 24 buzz::XmlElement* MakeBoolXmlElement(const char* name, bool value) { 25 const buzz::QName elementQName(buzz::STR_EMPTY, name); 26 const buzz::QName boolAttrQName(buzz::STR_EMPTY, "bool"); 27 buzz::XmlElement* bool_xml_element = 28 new buzz::XmlElement(elementQName, true); 33 buzz [all...] |
H A D | xml_element_util.h | 10 namespace buzz { namespace 16 std::string XmlElementToString(const buzz::XmlElement& xml_element); 21 buzz::XmlElement* MakeBoolXmlElement(const char* name, bool value); 23 buzz::XmlElement* MakeIntXmlElement(const char* name, int value); 25 buzz::XmlElement* MakeStringXmlElement(const char* name, const char* value);
|
H A D | send_ping_task.cc | 23 SendPingTask::SendPingTask(buzz::XmppTaskParentInterface* parent, 25 : XmppTask(parent, buzz::XmppEngine::HL_SINGLE), delegate_(delegate) { 33 scoped_ptr<buzz::XmlElement> stanza(MakePingStanza(ping_task_id_)); 35 if (SendStanza(stanza.get()) != buzz::XMPP_RETURN_OK) { 43 const buzz::XmlElement* stanza = NextStanza(); 50 std::string type = stanza->Attr(buzz::QN_TYPE); 51 if (type != buzz::STR_RESULT) { 61 bool SendPingTask::HandleStanza(const buzz::XmlElement* stanza) { 65 if (MatchResponseIq(stanza, buzz::Jid(buzz [all...] |
H A D | push_notifications_send_update_task.cc | 23 buzz::XmppTaskParentInterface* parent, const Notification& notification) 29 scoped_ptr<buzz::XmlElement> stanza( 34 if (SendStanza(stanza.get()) != buzz::XMPP_RETURN_OK) { 40 buzz::XmlElement* PushNotificationsSendUpdateTask::MakeUpdateMessage( 42 const buzz::Jid& to_jid_bare) { 44 const buzz::QName kQnPush(kPushNotificationsNamespace, "push"); 45 const buzz::QName kQnChannel(buzz::STR_EMPTY, "channel"); 46 const buzz::QName kQnData(kPushNotificationsNamespace, "data"); 47 const buzz [all...] |
H A D | push_notifications_subscribe_task.cc | 23 buzz::XmppTaskParentInterface* parent, 26 : XmppTask(parent, buzz::XmppEngine::HL_SINGLE), 34 const buzz::XmlElement* stanza) { 43 scoped_ptr<buzz::XmlElement> iq_stanza( 49 if (SendStanza(iq_stanza.get()) != buzz::XMPP_RETURN_OK) { 59 const buzz::XmlElement* stanza = NextStanza(); 66 if (stanza->HasAttr(buzz::QN_TYPE) && 67 stanza->Attr(buzz::QN_TYPE) == buzz::STR_RESULT) { 78 buzz [all...] |
H A D | push_notifications_listen_task.cc | 25 buzz::XmppTaskParentInterface* parent, Delegate* delegate) 26 : buzz::XmppTask(parent, buzz::XmppEngine::HL_TYPE), 39 const buzz::XmlElement* stanza = NextStanza(); 47 // the notification to the buzz server. 60 const buzz::QName kQnPush(kPushNotificationsNamespace, "push"); 61 const buzz::QName kQnChannel(buzz::STR_EMPTY, "channel"); 62 const buzz::QName kQnData(kPushNotificationsNamespace, "data"); 64 const buzz [all...] |
H A D | xml_element_util_unittest.cc | 16 namespace buzz { namespace 26 const buzz::QName kQName("namespace", "element"); 27 const buzz::XmlElement kXmlElement(kQName, true); 29 buzz::XmlPrinter::PrintXml(&expected_xml_stream, &kXmlElement); 34 scoped_ptr<buzz::XmlElement> foo_false( 38 scoped_ptr<buzz::XmlElement> bar_true( 44 scoped_ptr<buzz::XmlElement> int_xml_element( 51 scoped_ptr<buzz::XmlElement> string_xml_element(
|
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/ |
H A D | constants.h | 40 // QN_ == buzz::QName (namespace + name) 57 extern const buzz::StaticQName QN_ACTION; 59 extern const buzz::StaticQName QN_INITIATOR; 60 extern const buzz::StaticQName QN_CREATOR; 62 extern const buzz::StaticQName QN_JINGLE; 63 extern const buzz::StaticQName QN_JINGLE_CONTENT; 64 extern const buzz::StaticQName QN_JINGLE_CONTENT_NAME; 65 extern const buzz::StaticQName QN_JINGLE_CONTENT_MEDIA; 66 extern const buzz::StaticQName QN_JINGLE_REASON; 67 extern const buzz [all...] |
H A D | constants.cc | 42 const buzz::StaticQName QN_ACTION = { NS_EMPTY, "action" }; 44 const buzz::StaticQName QN_INITIATOR = { NS_EMPTY, LN_INITIATOR }; 45 const buzz::StaticQName QN_CREATOR = { NS_EMPTY, "creator" }; 47 const buzz::StaticQName QN_JINGLE = { NS_JINGLE, "jingle" }; 48 const buzz::StaticQName QN_JINGLE_CONTENT = { NS_JINGLE, "content" }; 49 const buzz::StaticQName QN_JINGLE_CONTENT_NAME = { NS_EMPTY, "name" }; 50 const buzz::StaticQName QN_JINGLE_CONTENT_MEDIA = { NS_EMPTY, "media" }; 51 const buzz::StaticQName QN_JINGLE_REASON = { NS_JINGLE, "reason" }; 52 const buzz::StaticQName QN_JINGLE_DRAFT_GROUP = { NS_JINGLE_DRAFT, "group" }; 53 const buzz [all...] |
H A D | parsing.h | 39 typedef std::vector<buzz::XmlElement*> XmlElements; 51 const buzz::XmlElement* extra; 80 std::string GetXmlAttr(const buzz::XmlElement* elem, 81 const buzz::QName& name, 83 std::string GetXmlAttr(const buzz::XmlElement* elem, 84 const buzz::QName& name, 87 bool GetXmlAttr(const buzz::XmlElement* elem, 88 const buzz::QName& name, bool def); 89 int GetXmlAttr(const buzz::XmlElement* elem, 90 const buzz [all...] |
/external/chromium_org/third_party/libjingle/source/talk/xmpp/ |
H A D | mucroomconfigtask.cc | 36 namespace buzz { namespace 51 buzz::XmlElement* owner_query = new 52 buzz::XmlElement(buzz::QN_MUC_OWNER_QUERY, true); 54 buzz::XmlElement* x_form = new buzz::XmlElement(buzz::QN_XDATA_X, true); 55 x_form->SetAttr(buzz::QN_TYPE, buzz::STR_FORM); 57 buzz [all...] |
H A D | xmpppump.h | 39 namespace buzz { namespace 46 virtual void OnStateChange(buzz::XmppEngine::State state) = 0; 51 XmppPump(buzz::XmppPumpNotify * notify = NULL); 53 buzz::XmppClient *client() { return client_; } 55 void DoLogin(const buzz::XmppClientSettings & xcs, 56 buzz::AsyncSocket* socket, 57 buzz::PreXmppAuth* auth); 60 void OnStateChange(buzz::XmppEngine::State state); 68 buzz::XmppReturnStatus SendStanza(const buzz [all...] |
H A D | mucroomuniquehangoutidtask.h | 9 namespace buzz { namespace 14 class MucRoomUniqueHangoutIdTask : public buzz::IqTask { 16 MucRoomUniqueHangoutIdTask(buzz::XmppTaskParentInterface* parent, 22 virtual void HandleResult(const buzz::XmlElement* stanza); 25 static buzz::XmlElement* MakeUniqueRequestXml(); 29 } // namespace buzz
|
H A D | xmppauth.cc | 42 void XmppAuth::StartPreXmppAuth(const buzz::Jid& jid, 65 if (GetAuthMechanism() == buzz::AUTH_MECHANISM_OAUTH2 && 66 contains(mechanisms, buzz::AUTH_MECHANISM_OAUTH2)) { 67 return buzz::AUTH_MECHANISM_OAUTH2; 71 if (GetAuthMechanism() == buzz::AUTH_MECHANISM_GOOGLE_TOKEN && 72 contains(mechanisms, buzz::AUTH_MECHANISM_GOOGLE_TOKEN)) { 73 return buzz::AUTH_MECHANISM_GOOGLE_TOKEN; 77 if (GetAuthMechanism() == buzz::AUTH_MECHANISM_GOOGLE_COOKIE && 78 contains(mechanisms, buzz::AUTH_MECHANISM_GOOGLE_COOKIE)) { 79 return buzz [all...] |
H A D | xmppthread.h | 37 namespace buzz { namespace 40 public rtc::Thread, buzz::XmppPumpNotify, rtc::MessageHandler { 45 buzz::XmppClient* client() { return pump_->client(); } 49 void Login(const buzz::XmppClientSettings & xcs); 53 buzz::XmppPump* pump_; 55 void OnStateChange(buzz::XmppEngine::State state); 59 } // namespace buzz
|
H A D | pubsub_task.h | 37 namespace buzz { namespace 44 class PubsubTask : public buzz::XmppTask { 49 typedef void (PubsubTask::*NodeHandler)(const buzz::XmlElement* node); 51 PubsubTask(XmppTaskParentInterface* parent, const buzz::Jid& pubsub_node_jid); 53 virtual bool HandleStanza(const buzz::XmlElement* stanza); 60 virtual void OnPubsubError(const buzz::XmlElement* error_stanza); 65 void HandlePubsubIqGetResponse(const buzz::XmlElement* pubsub_iq_response); 66 void HandlePubsubEventMessage(const buzz::XmlElement* pubsub_event_message); 67 void HandlePubsubItems(const buzz::XmlElement* items); 69 buzz [all...] |
H A D | iqtask.cc | 33 namespace buzz { namespace 39 const buzz::Jid& to, 40 buzz::XmlElement* el) 41 : buzz::XmppTask(parent, buzz::XmppEngine::HL_SINGLE), 49 buzz::XmppReturnStatus ret = SendStanza(stanza_.get()); 51 return (ret == buzz::XMPP_RETURN_OK) ? STATE_RESPONSE : STATE_ERROR; 54 bool IqTask::HandleStanza(const buzz::XmlElement* stanza) { 58 if (stanza->Attr(buzz::QN_TYPE) != buzz [all...] |
H A D | pubsub_task.cc | 37 namespace buzz { namespace 40 const buzz::Jid& pubsub_node_jid) 41 : buzz::XmppTask(parent, buzz::XmppEngine::HL_SENDER), 49 bool PubsubTask::HandleStanza(const buzz::XmlElement* stanza) { 50 const buzz::QName& stanza_name(stanza->Name()); 51 if (stanza_name == buzz::QN_MESSAGE) { 53 const buzz::XmlElement* pubsub_event_item = 60 } else if (stanza_name == buzz::QN_IQ) { 62 const buzz [all...] |
H A D | pingtask.cc | 10 namespace buzz { namespace 12 PingTask::PingTask(buzz::XmppTaskParentInterface* parent, 16 : buzz::XmppTask(parent, buzz::XmppEngine::HL_SINGLE), 25 bool PingTask::HandleStanza(const buzz::XmlElement* stanza) { 30 if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_RESULT && 31 stanza->Attr(buzz::QN_TYPE) != buzz::STR_ERROR) { 46 const buzz [all...] |
H A D | xmpppump.cc | 32 namespace buzz { namespace 35 state_ = buzz::XmppEngine::STATE_NONE; 37 client_ = new buzz::XmppClient(this); // NOTE: deleted by TaskRunner 40 void XmppPump::DoLogin(const buzz::XmppClientSettings & xcs, 41 buzz::AsyncSocket* socket, 42 buzz::PreXmppAuth* auth) { 43 OnStateChange(buzz::XmppEngine::STATE_START); 54 OnStateChange(buzz::XmppEngine::STATE_CLOSED); 57 void XmppPump::OnStateChange(buzz::XmppEngine::State state) { 77 buzz [all...] |
/external/chromium_org/remoting/protocol/ |
H A D | authenticator.cc | 14 const buzz::StaticQName kAuthenticationQName = { kChromotingXmlNamespace, 19 bool Authenticator::IsAuthenticatorMessage(const buzz::XmlElement* message) { 24 scoped_ptr<buzz::XmlElement> Authenticator::CreateEmptyAuthenticatorMessage() { 25 return scoped_ptr<buzz::XmlElement>( 26 new buzz::XmlElement(kAuthenticationQName)); 30 const buzz::XmlElement* Authenticator::FindAuthenticatorMessage( 31 const buzz::XmlElement* message) {
|
/external/chromium_org/third_party/libjingle/source/talk/p2p/client/ |
H A D | sessionsendtask.h | 46 class SessionSendTask : public buzz::XmppTask { 48 SessionSendTask(buzz::XmppTaskParentInterface* parent, 50 : buzz::XmppTask(parent, buzz::XmppEngine::HL_SINGLE), 61 void Send(const buzz::XmlElement* stanza) { 66 ASSERT(stanza->Name() == buzz::QN_IQ); 67 ASSERT(stanza->HasAttr(buzz::QN_TYPE)); 68 if (stanza->Attr(buzz::QN_TYPE) == "set") { 69 ASSERT(!stanza->HasAttr(buzz::QN_ID)); 71 ASSERT((stanza->Attr(buzz [all...] |
/external/chromium_org/remoting/signaling/ |
H A D | jingle_info_request.cc | 30 scoped_ptr<buzz::XmlElement> iq_body( 31 new buzz::XmlElement(buzz::QN_JINGLE_INFO_QUERY, true)); 33 buzz::STR_GET, buzz::STR_EMPTY, iq_body.Pass(), 48 const buzz::XmlElement* stanza) { 59 const buzz::XmlElement* query = 60 stanza->FirstNamed(buzz::QN_JINGLE_INFO_QUERY); 68 const buzz::XmlElement* stun = query->FirstNamed(buzz [all...] |
H A D | server_log_entry_unittest.h | 9 namespace buzz { namespace 11 } // namespace buzz 20 buzz::XmlElement* GetLogElementFromStanza(buzz::XmlElement* stanza); 24 buzz::XmlElement* GetSingleLogEntryFromStanza(buzz::XmlElement* stanza); 33 const buzz::XmlElement* elem,
|
/external/chromium_org/jingle/notifier/base/ |
H A D | fake_base_task.h | 15 namespace buzz { namespace 17 } // namespace buzz 26 base::WeakPtr<buzz::XmppTaskParentInterface> AsWeakPtr(); 30 base::WeakPtr<buzz::XmppTaskParentInterface> base_task_;
|