| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef REMOTING_HOST_IT2ME_IT2ME_NATIVE_MESSAGING_HOST_CHROMEOS_H_ |
| #define REMOTING_HOST_IT2ME_IT2ME_NATIVE_MESSAGING_HOST_CHROMEOS_H_ |
| |
| #include <memory> |
| |
| #include "base/macros.h" |
| #include "base/memory/scoped_refptr.h" |
| #include "extensions/browser/api/messaging/native_message_host.h" |
| |
| namespace base { |
| class SingleThreadTaskRunner; |
| } // namespace base |
| |
| namespace policy { |
| class PolicyService; |
| } // namespace policy |
| |
| namespace remoting { |
| |
| // Creates native messaging host on ChromeOS. Must be called on the UI thread |
| // of the browser process. |
| std::unique_ptr<extensions::NativeMessageHost> |
| CreateIt2MeNativeMessagingHostForChromeOS( |
| scoped_refptr<base::SingleThreadTaskRunner> io_runnner, |
| scoped_refptr<base::SingleThreadTaskRunner> ui_runnner, |
| policy::PolicyService* policy_service); |
| |
| } // namespace remoting |
| |
| #endif // REMOTING_HOST_IT2ME_IT2ME_NATIVE_MESSAGING_HOST_CHROMEOS_H_ |