Searched refs:buzz (Results 1 - 25 of 315) sorted by relevance

1234567891011>>

/external/chromium_org/jingle/notifier/listener/
H A Dxml_element_util.cc18 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 Dxml_element_util.h10 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 Dsend_ping_task.cc23 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 Dpush_notifications_send_update_task.cc23 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 Dpush_notifications_subscribe_task.cc23 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 Dpush_notifications_listen_task.cc25 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 Dxml_element_util_unittest.cc16 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 Dconstants.h40 // 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 Dconstants.cc42 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 Dparsing.h39 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 Dmucroomconfigtask.cc36 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 Dxmpppump.h39 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 Dmucroomuniquehangoutidtask.h9 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 Dxmppauth.cc42 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 Dxmppthread.h37 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 Dpubsub_task.h37 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 Diqtask.cc33 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 Dpubsub_task.cc37 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 Dpingtask.cc10 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 Dxmpppump.cc32 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 Dauthenticator.cc14 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 Dsessionsendtask.h46 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 Djingle_info_request.cc30 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 Dserver_log_entry_unittest.h9 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 Dfake_base_task.h15 namespace buzz { namespace
17 } // namespace buzz
26 base::WeakPtr<buzz::XmppTaskParentInterface> AsWeakPtr();
30 base::WeakPtr<buzz::XmppTaskParentInterface> base_task_;

Completed in 2158 milliseconds

1234567891011>>