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

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

Issue 639233002: Remote assistance on Chrome OS Part IV - It2MeHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move DEPS to remoting/host Created 6 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 18e738bc46ace83c9a6b40a45638a7735c9e559d..2986da005e630e164c9e0dfcde3d73c03d37138e 100644
--- a/remoting/host/it2me/it2me_native_messaging_host.h
+++ b/remoting/host/it2me/it2me_native_messaging_host.h
@@ -17,14 +17,23 @@ class DictionaryValue;
class Value;
} // namespace base
+namespace policy {
+class PolicyService;
+} // namespace policy
+
namespace remoting {
// Implementation of the native messaging host process.
class It2MeNativeMessagingHost : public It2MeHost::Observer,
public extensions::NativeMessageHost {
public:
- It2MeNativeMessagingHost(scoped_refptr<AutoThreadTaskRunner> task_runner,
- scoped_ptr<It2MeHostFactory> factory);
+ static scoped_ptr<NativeMessageHost> CreateForChromeOS(
+ scoped_refptr<net::URLRequestContextGetter> url_request_context_getter,
+ policy::PolicyService* policy_service);
+
+ It2MeNativeMessagingHost(
+ scoped_ptr<ChromotingHostContext> context,
+ scoped_ptr<It2MeHostFactory> factory);
Jamie 2014/10/14 01:18:42 Having both a Create method and a ctor doesn't see
kelvinp 2014/10/15 23:03:10 Done.
virtual ~It2MeNativeMessagingHost();
// extensions::NativeMessageHost implementation.
@@ -60,6 +69,7 @@ class It2MeNativeMessagingHost : public It2MeHost::Observer,
Client* client_;
scoped_ptr<It2MeHostFactory> factory_;
scoped_ptr<ChromotingHostContext> host_context_;
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
scoped_refptr<It2MeHost> it2me_host_;
// Cached, read-only copies of |it2me_host_| session state.

Powered by Google App Engine
This is Rietveld 408576698