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

Side by Side Diff: remoting/host/it2me/it2me_native_messaging_host.h

Issue 2034393004: Allow multiple logging::LogMessage{Handler,Listener}s Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 3 years, 11 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 unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/host/it2me/it2me_native_messaging_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698