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

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

Issue 2384063008: Enables delegating signal strategy for It2Me Host. (Closed)
Patch Set: 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
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..63644425b5740058442552652c6f868c0a9259a0 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_;
Sergey Ulanov 2016/10/05 21:49:07 = nullptr;
kelvinp 2016/10/06 00:43:05 Done.
std::unique_ptr<ChromotingHostContext> host_context_;
std::unique_ptr<It2MeHostFactory> factory_;
scoped_refptr<It2MeHost> it2me_host_;

Powered by Google App Engine
This is Rietveld 408576698