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

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

Issue 2080723008: [Chromoting] Use device::PowerSaveBlocker to block screen saver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve review comments Created 4 years, 5 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_HOST_H_ 5 #ifndef REMOTING_HOST_IT2ME_IT2ME_HOST_H_
6 #define REMOTING_HOST_IT2ME_IT2ME_HOST_H_ 6 #define REMOTING_HOST_IT2ME_IT2ME_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 17 matching lines...) Expand all
28 28
29 class ChromotingHost; 29 class ChromotingHost;
30 class ChromotingHostContext; 30 class ChromotingHostContext;
31 class DesktopEnvironmentFactory; 31 class DesktopEnvironmentFactory;
32 class HostEventLogger; 32 class HostEventLogger;
33 class HostNPScriptObject; 33 class HostNPScriptObject;
34 class HostStatusLogger; 34 class HostStatusLogger;
35 class PolicyWatcher; 35 class PolicyWatcher;
36 class RegisterSupportHostRequest; 36 class RegisterSupportHostRequest;
37 class RsaKeyPair; 37 class RsaKeyPair;
38 class ScreenSaverBlocker;
38 39
39 // These state values are duplicated in host_session.js and the Android Java 40 // These state values are duplicated in host_session.js and the Android Java
40 // It2MeObserver class. Remember to update all copies when making changes. 41 // It2MeObserver class. Remember to update all copies when making changes.
41 enum It2MeHostState { 42 enum It2MeHostState {
42 kDisconnected, 43 kDisconnected,
43 kStarting, 44 kStarting,
44 kRequestedAccessCode, 45 kRequestedAccessCode,
45 kReceivedAccessCode, 46 kReceivedAccessCode,
46 kConnected, 47 kConnected,
47 kError, 48 kError,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 std::string directory_bot_jid_; 150 std::string directory_bot_jid_;
150 151
151 It2MeHostState state_; 152 It2MeHostState state_;
152 153
153 scoped_refptr<RsaKeyPair> host_key_pair_; 154 scoped_refptr<RsaKeyPair> host_key_pair_;
154 std::unique_ptr<SignalStrategy> signal_strategy_; 155 std::unique_ptr<SignalStrategy> signal_strategy_;
155 std::unique_ptr<RegisterSupportHostRequest> register_request_; 156 std::unique_ptr<RegisterSupportHostRequest> register_request_;
156 std::unique_ptr<HostStatusLogger> host_status_logger_; 157 std::unique_ptr<HostStatusLogger> host_status_logger_;
157 std::unique_ptr<DesktopEnvironmentFactory> desktop_environment_factory_; 158 std::unique_ptr<DesktopEnvironmentFactory> desktop_environment_factory_;
158 std::unique_ptr<HostEventLogger> host_event_logger_; 159 std::unique_ptr<HostEventLogger> host_event_logger_;
160 std::unique_ptr<ScreenSaverBlocker> screen_saver_blocker_;
159 161
160 std::unique_ptr<ChromotingHost> host_; 162 std::unique_ptr<ChromotingHost> host_;
161 int failed_login_attempts_; 163 int failed_login_attempts_;
162 164
163 std::unique_ptr<PolicyWatcher> policy_watcher_; 165 std::unique_ptr<PolicyWatcher> policy_watcher_;
164 std::unique_ptr<It2MeConfirmationDialogFactory> confirmation_dialog_factory_; 166 std::unique_ptr<It2MeConfirmationDialogFactory> confirmation_dialog_factory_;
165 std::unique_ptr<It2MeConfirmationDialogProxy> confirmation_dialog_proxy_; 167 std::unique_ptr<It2MeConfirmationDialogProxy> confirmation_dialog_proxy_;
166 168
167 // Host the current nat traversal policy setting. 169 // Host the current nat traversal policy setting.
168 bool nat_traversal_enabled_; 170 bool nat_traversal_enabled_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 const std::string& directory_bot_jid); 208 const std::string& directory_bot_jid);
207 209
208 private: 210 private:
209 policy::PolicyService* policy_service_; 211 policy::PolicyService* policy_service_;
210 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory); 212 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory);
211 }; 213 };
212 214
213 } // namespace remoting 215 } // namespace remoting
214 216
215 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_ 217 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698