| 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..15743d8451ec8f43a42023151830e3bac02ed59a 100644
|
| --- a/remoting/host/it2me/it2me_native_messaging_host.h
|
| +++ b/remoting/host/it2me/it2me_native_messaging_host.h
|
| @@ -17,14 +17,24 @@ 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);
|
| +
|
| + static scoped_ptr<NativeMessageHost> Create(
|
| + scoped_ptr<ChromotingHostContext> context,
|
| + scoped_ptr<It2MeHostFactory> factory);
|
| +
|
| virtual ~It2MeNativeMessagingHost();
|
|
|
| // extensions::NativeMessageHost implementation.
|
| @@ -44,6 +54,10 @@ class It2MeNativeMessagingHost : public It2MeHost::Observer,
|
| static std::string HostStateToString(It2MeHostState host_state);
|
|
|
| private:
|
| + It2MeNativeMessagingHost(
|
| + scoped_ptr<ChromotingHostContext> context,
|
| + scoped_ptr<It2MeHostFactory> factory);
|
| +
|
| // These "Process.." methods handle specific request types. The |response|
|
| // dictionary is pre-filled by ProcessMessage() with the parts of the
|
| // response already known ("id" and "type" fields).
|
| @@ -60,6 +74,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.
|
|
|