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

Unified Diff: remoting/host/it2me/it2me_native_messaging_host.h

Issue 2384063008: Enables delegating signal strategy for It2Me Host. (Closed)
Patch Set: Fix typos Created 4 years, 2 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/host/it2me/it2me_host_unittest.cc ('k') | remoting/host/it2me/it2me_native_messaging_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/it2me/it2me_native_messaging_host.h
diff --git a/remoting/host/it2me/it2me_native_messaging_host.h b/remoting/host/it2me/it2me_native_messaging_host.h
index 5a71a541a28ca7fd5bd38890c68f83383e50ffbd..8560084d4f0e9a14aa1000154678ebab79794b8a 100644
--- a/remoting/host/it2me/it2me_native_messaging_host.h
+++ b/remoting/host/it2me/it2me_native_messaging_host.h
@@ -28,6 +28,7 @@ class SingleThreadTaskRunner;
namespace remoting {
class ChromotingHostContext;
+class DelegatingSignalStrategy;
class ElevatedNativeMessagingHost;
class PolicyWatcher;
@@ -67,10 +68,15 @@ class It2MeNativeMessagingHost : public It2MeHost::Observer,
std::unique_ptr<base::DictionaryValue> response);
void ProcessDisconnect(std::unique_ptr<base::DictionaryValue> message,
std::unique_ptr<base::DictionaryValue> response);
+ void ProcessIncomingIq(std::unique_ptr<base::DictionaryValue> message,
+ std::unique_ptr<base::DictionaryValue> response);
void SendErrorAndExit(std::unique_ptr<base::DictionaryValue> response,
const std::string& description) const;
void SendMessageToClient(std::unique_ptr<base::Value> message) const;
+ // Callback for DelegatingSignalStrategy.
+ void SendOutgoingIq(const std::string& iq);
+
// Called when initial policies are read.
void OnPolicyUpdate(std::unique_ptr<base::DictionaryValue> policies);
@@ -88,6 +94,7 @@ class It2MeNativeMessagingHost : public It2MeHost::Observer,
#endif // defined(OS_WIN)
Client* client_ = nullptr;
+ DelegatingSignalStrategy* delegating_signal_strategy_ = nullptr;
std::unique_ptr<ChromotingHostContext> host_context_;
std::unique_ptr<It2MeHostFactory> factory_;
scoped_refptr<It2MeHost> it2me_host_;
@@ -104,12 +111,6 @@ class It2MeNativeMessagingHost : public It2MeHost::Observer,
base::TimeDelta access_code_lifetime_;
std::string client_username_;
- // IT2Me Talk server configuration used by |it2me_host_| to connect.
- XmppSignalStrategy::XmppServerConfig xmpp_server_config_;
-
- // Chromoting Bot JID used by |it2me_host_| to register the host.
- std::string directory_bot_jid_;
-
// Indicates whether or not a policy has ever been read. This is to ensure
// that on startup, we do not accidentally start a connection before we have
// queried our policy restrictions.
« no previous file with comments | « remoting/host/it2me/it2me_host_unittest.cc ('k') | remoting/host/it2me/it2me_native_messaging_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698