| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/common/net/notifier/communicator/login_failure.h" | 5 #include "jingle/notifier/communicator/login_failure.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace notifier { | 9 namespace notifier { |
| 10 | 10 |
| 11 LoginFailure::LoginFailure(LoginError error) | 11 LoginFailure::LoginFailure(LoginError error) |
| 12 : error_(error), | 12 : error_(error), |
| 13 xmpp_error_(buzz::XmppEngine::ERROR_NONE), | 13 xmpp_error_(buzz::XmppEngine::ERROR_NONE), |
| 14 subcode_(0) { | 14 subcode_(0) { |
| 15 } | 15 } |
| 16 | 16 |
| 17 LoginFailure::LoginFailure(LoginError error, | 17 LoginFailure::LoginFailure(LoginError error, |
| 18 buzz::XmppEngine::Error xmpp_error, | 18 buzz::XmppEngine::Error xmpp_error, |
| 19 int subcode) | 19 int subcode) |
| 20 : error_(error), | 20 : error_(error), |
| 21 xmpp_error_(xmpp_error), | 21 xmpp_error_(xmpp_error), |
| 22 subcode_(subcode) { | 22 subcode_(subcode) { |
| 23 } | 23 } |
| 24 | 24 |
| 25 buzz::XmppEngine::Error LoginFailure::xmpp_error() const { | 25 buzz::XmppEngine::Error LoginFailure::xmpp_error() const { |
| 26 DCHECK_EQ(error_, XMPP_ERROR); | 26 DCHECK_EQ(error_, XMPP_ERROR); |
| 27 return xmpp_error_; | 27 return xmpp_error_; |
| 28 } | 28 } |
| 29 | 29 |
| 30 } // namespace notifier | 30 } // namespace notifier |
| OLD | NEW |