OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "jingle/notifier/base/xmpp_connection.h" | 5 #include "jingle/notifier/base/xmpp_connection.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/string_piece.h" | 10 #include "base/string_piece.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 break; | 114 break; |
115 } | 115 } |
116 default: | 116 default: |
117 // Do nothing. | 117 // Do nothing. |
118 break; | 118 break; |
119 } | 119 } |
120 } | 120 } |
121 | 121 |
122 void XmppConnection::OnInputLog(const char* data, int len) { | 122 void XmppConnection::OnInputLog(const char* data, int len) { |
123 DCHECK(non_thread_safe_.CalledOnValidThread()); | 123 DCHECK(non_thread_safe_.CalledOnValidThread()); |
124 LOG(INFO) << "XMPP Input: " << base::StringPiece(data, len); | 124 VLOG(2) << "XMPP Input: " << base::StringPiece(data, len); |
125 } | 125 } |
126 | 126 |
127 void XmppConnection::OnOutputLog(const char* data, int len) { | 127 void XmppConnection::OnOutputLog(const char* data, int len) { |
128 DCHECK(non_thread_safe_.CalledOnValidThread()); | 128 DCHECK(non_thread_safe_.CalledOnValidThread()); |
129 LOG(INFO) << "XMPP Output: " << base::StringPiece(data, len); | 129 VLOG(2) << "XMPP Output: " << base::StringPiece(data, len); |
130 } | 130 } |
131 | 131 |
132 void XmppConnection::ClearClient() { | 132 void XmppConnection::ClearClient() { |
133 if (weak_xmpp_client_.get()) { | 133 if (weak_xmpp_client_.get()) { |
134 weak_xmpp_client_->Invalidate(); | 134 weak_xmpp_client_->Invalidate(); |
135 DCHECK(!weak_xmpp_client_.get()); | 135 DCHECK(!weak_xmpp_client_.get()); |
136 } | 136 } |
137 } | 137 } |
138 | 138 |
139 } // namespace notifier | 139 } // namespace notifier |
OLD | NEW |