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

Unified Diff: remoting/host/heartbeat_sender.h

Issue 8432009: Refactor IqRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 1 month 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
« no previous file with comments | « no previous file | remoting/host/heartbeat_sender.cc » ('j') | remoting/jingle_glue/iq_sender.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/heartbeat_sender.h
diff --git a/remoting/host/heartbeat_sender.h b/remoting/host/heartbeat_sender.h
index 2100b67b5ef95d66e34b2d5df9508bcaab75ad19..582bc28f455eb4330dd69c66376e577c28f76bba 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_;
« no previous file with comments | « no previous file | remoting/host/heartbeat_sender.cc » ('j') | remoting/jingle_glue/iq_sender.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698