| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "remoting/signaling/xmpp_login_handler.h" | 5 #include "remoting/signaling/xmpp_login_handler.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "remoting/signaling/xmpp_stream_parser.h" | 12 #include "remoting/signaling/xmpp_stream_parser.h" |
| 13 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 13 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
| 14 | 14 |
| 15 // Undefine SendMessage and ERROR defined in Windows headers. | 15 // Undefine SendMessage and ERROR defined in Windows headers. |
| 16 #ifdef SendMessage | 16 #ifdef SendMessage |
| 17 #undef SendMessage | 17 #undef SendMessage |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 #ifdef ERROR | 20 #ifdef ERROR |
| 21 #undef ERROR | 21 #undef ERROR |
| 22 #endif | 22 #endif |
| 23 | 23 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 } | 234 } |
| 235 | 235 |
| 236 void XmppLoginHandler::OnError(SignalStrategy::Error error) { | 236 void XmppLoginHandler::OnError(SignalStrategy::Error error) { |
| 237 if (state_ != State::ERROR) { | 237 if (state_ != State::ERROR) { |
| 238 state_ = State::ERROR; | 238 state_ = State::ERROR; |
| 239 delegate_->OnLoginHandlerError(error); | 239 delegate_->OnLoginHandlerError(error); |
| 240 } | 240 } |
| 241 } | 241 } |
| 242 | 242 |
| 243 } // namespace remoting | 243 } // namespace remoting |
| OLD | NEW |