HomeSort by relevance Sort by last modified time
    Searched refs:buzz (Results 1 - 25 of 315) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/jingle/notifier/listener/
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::XmlElement* MakeIntXmlElement(const char* name, int value)
    [all...]
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);
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::STR_EMPTY), ping_task_id_))
    [all...]
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::QName kQnRecipient(kPushNotificationsNamespace, "recipient")
    [all...]
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::XmlElement* PushNotificationsSubscribeTask::MakeSubscriptionMessage
    [all...]
push_notifications_listen_task.h 10 // The task is deleted automatically by the buzz::XmppClient. This occurs in the
11 // destructor of TaskRunner, which is a superclass of buzz::XmppClient.
19 namespace buzz { namespace
27 class PushNotificationsListenTask : public buzz::XmppTask {
37 PushNotificationsListenTask(buzz::XmppTaskParentInterface* parent,
41 // Overriden from buzz::XmppTask.
44 virtual bool HandleStanza(const buzz::XmlElement* stanza) OVERRIDE;
47 bool IsValidNotification(const buzz::XmlElement* stanza);
push_notifications_send_update_task.h 16 namespace buzz { namespace
23 class PushNotificationsSendUpdateTask : public buzz::XmppTask {
26 buzz::XmppTaskParentInterface* parent, const Notification& notification);
29 // Overridden from buzz::XmppTask.
33 // Allocates and constructs an buzz::XmlElement containing the update stanza.
34 static buzz::XmlElement* MakeUpdateMessage(
35 const Notification& notification, const buzz::Jid& to_jid_bare);
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::XmlElement* push_element = stanza->FirstNamed(kQnPush)
    [all...]
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/
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::StaticQName QN_JINGLE_DRAFT_GROUP
    [all...]
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::StaticQName QN_JINGLE_DRAFT_GROUP_TYPE = { NS_EMPTY, "type" }
    [all...]
  /external/chromium_org/third_party/libjingle/source/talk/xmpp/
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::XmlElement* roomname_field
    [all...]
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::XmlElement *stanza)
    [all...]
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
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::AUTH_MECHANISM_GOOGLE_COOKIE
    [all...]
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
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::Jid pubsub_node_jid_
    [all...]
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::STR_RESULT &
    [all...]
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::XmlElement* pubsub_item = stanza->FirstNamed(QN_PUBSUB)
    [all...]
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::XmlElement* stanza = NextStanza()
    [all...]
  /external/chromium_org/remoting/protocol/
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) {
third_party_authenticator_base.h 15 namespace buzz { namespace
19 } // namespace buzz
41 virtual void ProcessMessage(const buzz::XmlElement* message,
43 virtual scoped_ptr<buzz::XmlElement> GetNextMessage() OVERRIDE;
49 static const buzz::StaticQName kTokenUrlTag;
50 static const buzz::StaticQName kTokenScopeTag;
51 static const buzz::StaticQName kTokenTag;
57 const buzz::XmlElement* message,
62 const buzz::XmlElement* message,
66 virtual void AddTokenElements(buzz::XmlElement* message) = 0
    [all...]
  /external/chromium_org/remoting/signaling/
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,
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::QN_JINGLE_INFO_STUN)
    [all...]
  /external/chromium_org/third_party/libjingle/source/talk/p2p/client/
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::QN_TYPE) == "result") |
    [all...]

Completed in 134 milliseconds

1 2 3 4 5 6 7 8 91011>>