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

Unified Diff: remoting/jingle_glue/jingle_client.h

Issue 3087003: Added HostKeyPair class, signatures for heartbeat messages. (Closed)
Patch Set: - 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
« no previous file with comments | « remoting/jingle_glue/jingle_channel.cc ('k') | remoting/jingle_glue/jingle_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/jingle_client.h
diff --git a/remoting/jingle_glue/jingle_client.h b/remoting/jingle_glue/jingle_client.h
index aa94a001bd8a98bcbe2837f0e0f0a5382e8de05c..bac15d8ffc25f9b43129a905acd394ae79552bc9 100644
--- a/remoting/jingle_glue/jingle_client.h
+++ b/remoting/jingle_glue/jingle_client.h
@@ -30,11 +30,14 @@ class Session;
namespace remoting {
+class IqRequest;
+
class JingleClient : public base::RefCountedThreadSafe<JingleClient>,
public sigslot::has_slots<> {
public:
enum State {
- START, // Initial state.
+ CREATED, // Initial state.
+ INITIALIZED,
CONNECTING,
CONNECTED,
CLOSED,
@@ -88,6 +91,10 @@ class JingleClient : public base::RefCountedThreadSafe<JingleClient>,
// known yet, i.e. authentication hasn't finished.
std::string GetFullJid();
+ // Creates new IqRequest for this client. Ownership for of the created object
+ // is transfered to the caller.
+ virtual IqRequest* CreateIqRequest();
+
// Current state of the client.
State state() { return state_; }
@@ -98,6 +105,8 @@ class JingleClient : public base::RefCountedThreadSafe<JingleClient>,
MessageLoop* message_loop();
private:
+ friend class HeartbeatSenderTest;
+
void OnConnectionStateChanged(buzz::XmppEngine::State state);
void OnIncomingTunnel(cricket::TunnelSessionClient* client, buzz::Jid jid,
« no previous file with comments | « remoting/jingle_glue/jingle_channel.cc ('k') | remoting/jingle_glue/jingle_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698