| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 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 #ifndef WEBRTC_LIBJINGLE_XMPP_PUBSUBSTATECLIENT_H_ | 11 #ifndef WEBRTC_LIBJINGLE_XMPP_PUBSUBSTATECLIENT_H_ |
| 12 #define WEBRTC_LIBJINGLE_XMPP_PUBSUBSTATECLIENT_H_ | 12 #define WEBRTC_LIBJINGLE_XMPP_PUBSUBSTATECLIENT_H_ |
| 13 | 13 |
| 14 #include <map> | 14 #include <map> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/libjingle/xmllite/qname.h" | 18 #include "webrtc/libjingle/xmllite/qname.h" |
| 19 #include "webrtc/libjingle/xmllite/xmlelement.h" | 19 #include "webrtc/libjingle/xmllite/xmlelement.h" |
| 20 #include "webrtc/libjingle/xmpp/constants.h" | 20 #include "webrtc/libjingle/xmpp/constants.h" |
| 21 #include "webrtc/libjingle/xmpp/jid.h" | 21 #include "webrtc/libjingle/xmpp/jid.h" |
| 22 #include "webrtc/libjingle/xmpp/pubsubclient.h" | 22 #include "webrtc/libjingle/xmpp/pubsubclient.h" |
| 23 #include "webrtc/base/constructormagic.h" |
| 23 #include "webrtc/base/scoped_ptr.h" | 24 #include "webrtc/base/scoped_ptr.h" |
| 24 #include "webrtc/base/sigslot.h" | 25 #include "webrtc/base/sigslot.h" |
| 25 #include "webrtc/base/sigslotrepeater.h" | 26 #include "webrtc/base/sigslotrepeater.h" |
| 26 | 27 |
| 27 namespace buzz { | 28 namespace buzz { |
| 28 | 29 |
| 29 // To handle retracts correctly, we need to remember certain details | 30 // To handle retracts correctly, we need to remember certain details |
| 30 // about an item. We could just cache the entire XML element, but | 31 // about an item. We could just cache the entire XML element, but |
| 31 // that would take more memory and require re-parsing. | 32 // that would take more memory and require re-parsing. |
| 32 struct StateItemInfo { | 33 struct StateItemInfo { |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 // key => state | 262 // key => state |
| 262 std::map<std::string, C> state_by_key_; | 263 std::map<std::string, C> state_by_key_; |
| 263 // itemid => StateItemInfo | 264 // itemid => StateItemInfo |
| 264 std::map<std::string, StateItemInfo> info_by_itemid_; | 265 std::map<std::string, StateItemInfo> info_by_itemid_; |
| 265 | 266 |
| 266 RTC_DISALLOW_COPY_AND_ASSIGN(PubSubStateClient); | 267 RTC_DISALLOW_COPY_AND_ASSIGN(PubSubStateClient); |
| 267 }; | 268 }; |
| 268 } // namespace buzz | 269 } // namespace buzz |
| 269 | 270 |
| 270 #endif // WEBRTC_LIBJINGLE_XMPP_PUBSUBSTATECLIENT_H_ | 271 #endif // WEBRTC_LIBJINGLE_XMPP_PUBSUBSTATECLIENT_H_ |
| OLD | NEW |