| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 5 #ifndef REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
| 6 #define REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 6 #define REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 const NPVariant* args, | 61 const NPVariant* args, |
| 62 uint32_t argCount, | 62 uint32_t argCount, |
| 63 NPVariant* result); | 63 NPVariant* result); |
| 64 bool HasProperty(const std::string& property_name); | 64 bool HasProperty(const std::string& property_name); |
| 65 bool GetProperty(const std::string& property_name, NPVariant* result); | 65 bool GetProperty(const std::string& property_name, NPVariant* result); |
| 66 bool SetProperty(const std::string& property_name, const NPVariant* value); | 66 bool SetProperty(const std::string& property_name, const NPVariant* value); |
| 67 bool RemoveProperty(const std::string& property_name); | 67 bool RemoveProperty(const std::string& property_name); |
| 68 bool Enumerate(std::vector<std::string>* values); | 68 bool Enumerate(std::vector<std::string>* values); |
| 69 | 69 |
| 70 // remoting::HostStatusObserver implementation. | 70 // remoting::HostStatusObserver implementation. |
| 71 virtual void OnSignallingConnected( | |
| 72 remoting::SignalStrategy* signal_strategy) OVERRIDE; | |
| 73 virtual void OnSignallingDisconnected() OVERRIDE; | |
| 74 virtual void OnAccessDenied() OVERRIDE; | 71 virtual void OnAccessDenied() OVERRIDE; |
| 75 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; | 72 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; |
| 76 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; | 73 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; |
| 77 virtual void OnShutdown() OVERRIDE; | 74 virtual void OnShutdown() OVERRIDE; |
| 78 | 75 |
| 79 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread). | 76 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread). |
| 80 // This should only be called by HostLogHandler. To log to the UI, use the | 77 // This should only be called by HostLogHandler. To log to the UI, use the |
| 81 // standard LOG(INFO) and it will be sent to this method. | 78 // standard LOG(INFO) and it will be sent to this method. |
| 82 void PostLogDebugInfo(const std::string& message); | 79 void PostLogDebugInfo(const std::string& message); |
| 83 | 80 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 std::string access_code_; | 167 std::string access_code_; |
| 171 base::TimeDelta access_code_lifetime_; | 168 base::TimeDelta access_code_lifetime_; |
| 172 | 169 |
| 173 std::string client_username_; | 170 std::string client_username_; |
| 174 ScopedRefNPObject log_debug_info_func_; | 171 ScopedRefNPObject log_debug_info_func_; |
| 175 ScopedRefNPObject on_nat_traversal_policy_changed_func_; | 172 ScopedRefNPObject on_nat_traversal_policy_changed_func_; |
| 176 ScopedRefNPObject on_state_changed_func_; | 173 ScopedRefNPObject on_state_changed_func_; |
| 177 base::PlatformThreadId np_thread_id_; | 174 base::PlatformThreadId np_thread_id_; |
| 178 scoped_refptr<PluginMessageLoopProxy> plugin_message_loop_proxy_; | 175 scoped_refptr<PluginMessageLoopProxy> plugin_message_loop_proxy_; |
| 179 | 176 |
| 177 ChromotingHostContext host_context_; |
| 178 scoped_refptr<MutableHostConfig> host_config_; |
| 179 scoped_ptr<SignalStrategy> signal_strategy_; |
| 180 scoped_ptr<RegisterSupportHostRequest> register_request_; | 180 scoped_ptr<RegisterSupportHostRequest> register_request_; |
| 181 scoped_ptr<LogToServer> log_to_server_; | 181 scoped_ptr<LogToServer> log_to_server_; |
| 182 scoped_refptr<MutableHostConfig> host_config_; | |
| 183 ChromotingHostContext host_context_; | |
| 184 scoped_ptr<DesktopEnvironment> desktop_environment_; | 182 scoped_ptr<DesktopEnvironment> desktop_environment_; |
| 185 scoped_ptr<It2MeHostUserInterface> it2me_host_user_interface_; | 183 scoped_ptr<It2MeHostUserInterface> it2me_host_user_interface_; |
| 186 | 184 |
| 187 scoped_refptr<ChromotingHost> host_; | 185 scoped_refptr<ChromotingHost> host_; |
| 188 int failed_login_attempts_; | 186 int failed_login_attempts_; |
| 189 | 187 |
| 190 UiStrings ui_strings_; | 188 UiStrings ui_strings_; |
| 191 base::Lock ui_strings_lock_; | 189 base::Lock ui_strings_lock_; |
| 192 | 190 |
| 193 base::WaitableEvent disconnected_event_; | 191 base::WaitableEvent disconnected_event_; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 215 // it can be executed after at least one successful policy read. This | 213 // it can be executed after at least one successful policy read. This |
| 216 // variable contains the thunk if it is necessary. | 214 // variable contains the thunk if it is necessary. |
| 217 base::Closure pending_connect_; | 215 base::Closure pending_connect_; |
| 218 }; | 216 }; |
| 219 | 217 |
| 220 } // namespace remoting | 218 } // namespace remoting |
| 221 | 219 |
| 222 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject); | 220 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject); |
| 223 | 221 |
| 224 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 222 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
| OLD | NEW |