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

Side by Side Diff: remoting/host/heartbeat_sender.h

Issue 2690003: Copy the (early prototype of) remoting in Chrome into the public tree.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/event_executor_win.cc ('k') | remoting/host/heartbeat_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_HEARTBEAT_SENDER_H_
6 #define REMOTING_HOST_HEARTBEAT_SENDER_H_
7
8 #include <string>
9
10 #include "base/scoped_ptr.h"
11 #include "base/ref_counted.h"
12 #include "remoting/jingle_glue/iq_request.h"
13
14 namespace remoting {
15
16 class IqRequest;
17 class JingleClient;
18
19 // HeartbeatSender periodically sends hertbeats to the chromoting bot.
20 // TODO(sergeyu): Write unittest for this class.
21 class HeartbeatSender : public base::RefCountedThreadSafe<HeartbeatSender> {
22 public:
23 HeartbeatSender();
24
25 // Starts heart-beating for |jingle_client|.
26 void Start(JingleClient* jingle_client, const std::string& host_id);
27
28 private:
29
30 void DoStart();
31 void DoSendStanza();
32
33 bool started_;
34 JingleClient* jingle_client_;
35 std::string host_id_;
36 scoped_ptr<IqRequest> request_;
37 };
38
39 } // namespace remoting
40
41 #endif // REMOTING_HOST_HEARTBEAT_SENDER_H_
OLDNEW
« no previous file with comments | « remoting/host/event_executor_win.cc ('k') | remoting/host/heartbeat_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698