diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-20 21:00:10 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-20 21:00:10 +0000 |
commit | aad6ced7fac07957bcbf5e1b8009b93ce71588ef (patch) | |
tree | 12c140cd04acdac4d3c8f6f357a707dc084e18a6 /remoting/jingle_glue/xmpp_signal_strategy.h | |
parent | 919af5861da3345c7a0758860eb4e0e9b3fbb4eb (diff) | |
download | chromium_src-aad6ced7fac07957bcbf5e1b8009b93ce71588ef.zip chromium_src-aad6ced7fac07957bcbf5e1b8009b93ce71588ef.tar.gz chromium_src-aad6ced7fac07957bcbf5e1b8009b93ce71588ef.tar.bz2 |
Send keep-alive messages for XMPP connections.
BUG=124295
Review URL: https://chromiumcodereview.appspot.com/10134013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133275 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/jingle_glue/xmpp_signal_strategy.h')
-rw-r--r-- | remoting/jingle_glue/xmpp_signal_strategy.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/remoting/jingle_glue/xmpp_signal_strategy.h b/remoting/jingle_glue/xmpp_signal_strategy.h index 361aac8..ec405a4 100644 --- a/remoting/jingle_glue/xmpp_signal_strategy.h +++ b/remoting/jingle_glue/xmpp_signal_strategy.h @@ -16,6 +16,7 @@ #include "base/compiler_specific.h" #include "base/observer_list.h" +#include "base/timer.h" #include "base/threading/non_thread_safe.h" #include "third_party/libjingle/source/talk/base/sigslot.h" #include "third_party/libjingle/source/talk/xmpp/xmppclient.h" @@ -66,6 +67,8 @@ class XmppSignalStrategy : public base::NonThreadSafe, void OnConnectionStateChanged(buzz::XmppEngine::State state); void SetState(State new_state); + void SendKeepAlive(); + JingleThread* thread_; std::string username_; @@ -78,6 +81,8 @@ class XmppSignalStrategy : public base::NonThreadSafe, ObserverList<Listener> listeners_; + base::RepeatingTimer<XmppSignalStrategy> keep_alive_timer_; + DISALLOW_COPY_AND_ASSIGN(XmppSignalStrategy); }; |