OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/libjingle/xmpp/xmppthread.h" | 11 #include "webrtc/libjingle/xmpp/xmppthread.h" |
12 | 12 |
13 #include "webrtc/libjingle/xmpp/xmppauth.h" | 13 #include "webrtc/libjingle/xmpp/xmppauth.h" |
14 #include "webrtc/libjingle/xmpp/xmppclientsettings.h" | 14 #include "webrtc/libjingle/xmpp/xmppclientsettings.h" |
15 | 15 |
16 namespace buzz { | 16 namespace buzz { |
17 namespace { | 17 namespace { |
18 | 18 |
19 const uint32 MSG_LOGIN = 1; | 19 const uint32_t MSG_LOGIN = 1; |
20 const uint32 MSG_DISCONNECT = 2; | 20 const uint32_t MSG_DISCONNECT = 2; |
21 | 21 |
22 struct LoginData: public rtc::MessageData { | 22 struct LoginData: public rtc::MessageData { |
23 LoginData(const buzz::XmppClientSettings& s) : xcs(s) {} | 23 LoginData(const buzz::XmppClientSettings& s) : xcs(s) {} |
24 virtual ~LoginData() {} | 24 virtual ~LoginData() {} |
25 | 25 |
26 buzz::XmppClientSettings xcs; | 26 buzz::XmppClientSettings xcs; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace | 29 } // namespace |
30 | 30 |
(...skipping 29 matching lines...) Expand all Loading... |
60 new XmppAuth()); | 60 new XmppAuth()); |
61 delete data; | 61 delete data; |
62 } else if (pmsg->message_id == MSG_DISCONNECT) { | 62 } else if (pmsg->message_id == MSG_DISCONNECT) { |
63 pump_->DoDisconnect(); | 63 pump_->DoDisconnect(); |
64 } else { | 64 } else { |
65 ASSERT(false); | 65 ASSERT(false); |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 } // namespace buzz | 69 } // namespace buzz |
OLD | NEW |