Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: chrome/browser/sync/notifier/cache_invalidation_packet_handler.h

Issue 3054018: Made CacheInvalidationPacketHandler aware of XmppClient state changes. (Closed)
Patch Set: fixed deps Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/notifier/cache_invalidation_packet_handler.h
diff --git a/chrome/browser/sync/notifier/cache_invalidation_packet_handler.h b/chrome/browser/sync/notifier/cache_invalidation_packet_handler.h
index e3e89f2066065de5dfd50894f97b084bcf5c93ae..b1ed258ea69a7a594daa92f0a532b24111bd9d51 100644
--- a/chrome/browser/sync/notifier/cache_invalidation_packet_handler.h
+++ b/chrome/browser/sync/notifier/cache_invalidation_packet_handler.h
@@ -12,7 +12,9 @@
#include <string>
#include "base/basictypes.h"
+#include "talk/base/sigslot.h"
#include "talk/xmpp/jid.h"
+#include "talk/xmpp/xmppengine.h"
namespace buzz {
class XmppClient;
@@ -27,7 +29,7 @@ namespace sync_notifier {
// TODO(akalin): Add a NonThreadSafe member to this class and use it.
-class CacheInvalidationPacketHandler {
+class CacheInvalidationPacketHandler : public sigslot::has_slots<> {
public:
// Starts routing packets from |invalidation_client| through
// |xmpp_client|. |invalidation_client| must not already be routing
@@ -48,6 +50,8 @@ class CacheInvalidationPacketHandler {
void HandleInboundPacket(const std::string& packet);
+ void OnClientStateChange(buzz::XmppEngine::State state);
+
buzz::XmppClient* xmpp_client_;
invalidation::InvalidationClient* invalidation_client_;
« no previous file with comments | « chrome/browser/sync/notifier/DEPS ('k') | chrome/browser/sync/notifier/cache_invalidation_packet_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698