summaryrefslogtreecommitdiffstats
path: root/remoting/host/heartbeat_sender.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-04 01:00:49 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-04 01:00:49 +0000
commitb39e182dca78d0c165ba75bb04878f4eb71b3625 (patch)
treec8f3d4f74b05cdb50b4d5244620595a758d8a996 /remoting/host/heartbeat_sender.h
parentdc01874febf63d62bd05178f168f5459fec05372 (diff)
downloadchromium_src-b39e182dca78d0c165ba75bb04878f4eb71b3625.zip
chromium_src-b39e182dca78d0c165ba75bb04878f4eb71b3625.tar.gz
chromium_src-b39e182dca78d0c165ba75bb04878f4eb71b3625.tar.bz2
Refactor IqRequest.
Remove CreateIqRequest from SignalStrategy interface. Intead to send an Iq stanza the new IqSender now need to be used. IqSender creats of IqRequest objects and handling iq responses. BUG=None TEST=Unittests. Review URL: http://codereview.chromium.org/8432009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108606 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/heartbeat_sender.h')
-rw-r--r--remoting/host/heartbeat_sender.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/remoting/host/heartbeat_sender.h b/remoting/host/heartbeat_sender.h
index 2100b67..582bc28 100644
--- a/remoting/host/heartbeat_sender.h
+++ b/remoting/host/heartbeat_sender.h
@@ -13,17 +13,21 @@
#include "base/timer.h"
#include "remoting/host/host_key_pair.h"
#include "remoting/host/host_status_observer.h"
-#include "remoting/jingle_glue/iq_request.h"
-#include "testing/gtest/include/gtest/gtest_prod.h"
+#include "base/gtest_prod_util.h"
namespace base {
class MessageLoopProxy;
} // namespace base
+namespace buzz {
+class XmlElement;
+} // namespace buzz
+
namespace remoting {
-class IqRequest;
class HostKeyPair;
+class IqRequest;
+class IqSender;
class MutableHostConfig;
// HeartbeatSender periodically sends heartbeat stanzas to the Chromoting Bot.
@@ -106,6 +110,7 @@ class HeartbeatSender : public HostStatusObserver {
std::string host_id_;
HostKeyPair key_pair_;
std::string full_jid_;
+ scoped_ptr<IqSender> iq_sender_;
scoped_ptr<IqRequest> request_;
int interval_ms_;
base::RepeatingTimer<HeartbeatSender> timer_;