Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(714)

Unified Diff: remoting/signaling/xmpp_signal_strategy.cc

Issue 2042513002: Move the routing-info inside the jingle element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: log incoming stanzas Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/jingle_messages_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/xmpp_signal_strategy.cc
diff --git a/remoting/signaling/xmpp_signal_strategy.cc b/remoting/signaling/xmpp_signal_strategy.cc
index 4e25ccbf9fe0f2160c7760d7a5ccc47dd8c64d86..551f32afb82582f8e5406fd57934f2ec4bf2d386 100644
--- a/remoting/signaling/xmpp_signal_strategy.cc
+++ b/remoting/signaling/xmpp_signal_strategy.cc
@@ -259,6 +259,9 @@ void XmppSignalStrategy::Core::SetAuthInfo(const std::string& username,
}
void XmppSignalStrategy::Core::SendMessage(const std::string& message) {
+ HOST_LOG(INFO) << "============= Outgoing Stanza ==========================";
+ HOST_LOG(INFO) << message;
+
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(tls_state_ == TlsState::NOT_REQUESTED ||
tls_state_ == TlsState::CONNECTED);
@@ -347,7 +350,8 @@ void XmppSignalStrategy::Core::OnMessageSent() {
void XmppSignalStrategy::Core::OnStanza(
const std::unique_ptr<buzz::XmlElement> stanza) {
DCHECK(thread_checker_.CalledOnValidThread());
-
+ HOST_LOG(INFO) << "============= Incoming Stanza ==========================";
+ HOST_LOG(INFO) << stanza->Str();
base::ObserverListBase<Listener>::Iterator it(&listeners_);
for (Listener* listener = it.GetNext(); listener; listener = it.GetNext()) {
if (listener->OnSignalStrategyIncomingStanza(stanza.get()))
« no previous file with comments | « remoting/protocol/jingle_messages_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698