| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_HOST_IT2ME_IT2ME_NATIVE_MESSAGING_HOST_H_ | 5 #ifndef REMOTING_HOST_IT2ME_IT2ME_NATIVE_MESSAGING_HOST_H_ |
| 6 #define REMOTING_HOST_IT2ME_IT2ME_NATIVE_MESSAGING_HOST_H_ | 6 #define REMOTING_HOST_IT2ME_IT2ME_NATIVE_MESSAGING_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 std::unique_ptr<ElevatedNativeMessagingHost> elevated_host_; | 93 std::unique_ptr<ElevatedNativeMessagingHost> elevated_host_; |
| 94 #endif // defined(OS_WIN) | 94 #endif // defined(OS_WIN) |
| 95 | 95 |
| 96 Client* client_ = nullptr; | 96 Client* client_ = nullptr; |
| 97 DelegatingSignalStrategy* delegating_signal_strategy_ = nullptr; | 97 DelegatingSignalStrategy* delegating_signal_strategy_ = nullptr; |
| 98 std::unique_ptr<ChromotingHostContext> host_context_; | 98 std::unique_ptr<ChromotingHostContext> host_context_; |
| 99 std::unique_ptr<It2MeHostFactory> factory_; | 99 std::unique_ptr<It2MeHostFactory> factory_; |
| 100 scoped_refptr<It2MeHost> it2me_host_; | 100 scoped_refptr<It2MeHost> it2me_host_; |
| 101 | 101 |
| 102 #if !defined(OS_CHROMEOS) | 102 #if !defined(OS_CHROMEOS) |
| 103 // Don't install a log message handler on ChromeOS because we run in the | 103 // Don't install a log message listener on ChromeOS because we run in the |
| 104 // browser process and don't want to intercept all its log messages. | 104 // browser process and don't want to intercept all its log messages. |
| 105 std::unique_ptr<LogMessageHandler> log_message_handler_; | 105 std::unique_ptr<LogMessageListener> log_message_listener_; |
| 106 #endif | 106 #endif |
| 107 | 107 |
| 108 // Cached, read-only copies of |it2me_host_| session state. | 108 // Cached, read-only copies of |it2me_host_| session state. |
| 109 It2MeHostState state_; | 109 It2MeHostState state_; |
| 110 std::string access_code_; | 110 std::string access_code_; |
| 111 base::TimeDelta access_code_lifetime_; | 111 base::TimeDelta access_code_lifetime_; |
| 112 std::string client_username_; | 112 std::string client_username_; |
| 113 | 113 |
| 114 // Indicates whether or not a policy has ever been read. This is to ensure | 114 // Indicates whether or not a policy has ever been read. This is to ensure |
| 115 // that on startup, we do not accidentally start a connection before we have | 115 // that on startup, we do not accidentally start a connection before we have |
| (...skipping 13 matching lines...) Expand all Loading... |
| 129 | 129 |
| 130 base::WeakPtr<It2MeNativeMessagingHost> weak_ptr_; | 130 base::WeakPtr<It2MeNativeMessagingHost> weak_ptr_; |
| 131 base::WeakPtrFactory<It2MeNativeMessagingHost> weak_factory_; | 131 base::WeakPtrFactory<It2MeNativeMessagingHost> weak_factory_; |
| 132 | 132 |
| 133 DISALLOW_COPY_AND_ASSIGN(It2MeNativeMessagingHost); | 133 DISALLOW_COPY_AND_ASSIGN(It2MeNativeMessagingHost); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 } // namespace remoting | 136 } // namespace remoting |
| 137 | 137 |
| 138 #endif // REMOTING_HOST_IT2ME_IT2ME_NATIVE_MESSAGING_HOST_H_ | 138 #endif // REMOTING_HOST_IT2ME_IT2ME_NATIVE_MESSAGING_HOST_H_ |
| OLD | NEW |