| 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 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/synchronization/cancellation_flag.h" | 14 #include "base/synchronization/cancellation_flag.h" |
| 15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
| 16 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
| 17 #include "base/string16.h" | 17 #include "base/string16.h" |
| 18 #include "base/threading/platform_thread.h" | 18 #include "base/threading/platform_thread.h" |
| 19 #include "base/time.h" | 19 #include "base/time.h" |
| 20 #include "remoting/base/plugin_message_loop_proxy.h" | 20 #include "remoting/base/plugin_message_loop_proxy.h" |
| 21 #include "remoting/host/chromoting_host_context.h" | 21 #include "remoting/host/chromoting_host_context.h" |
| 22 #include "remoting/host/host_status_observer.h" | 22 #include "remoting/host/host_status_observer.h" |
| 23 #include "remoting/host/log_to_server.h" |
| 23 #include "remoting/host/plugin/host_plugin_utils.h" | 24 #include "remoting/host/plugin/host_plugin_utils.h" |
| 24 #include "remoting/host/ui_strings.h" | 25 #include "remoting/host/ui_strings.h" |
| 25 #include "third_party/npapi/bindings/npapi.h" | 26 #include "third_party/npapi/bindings/npapi.h" |
| 26 #include "third_party/npapi/bindings/npfunctions.h" | 27 #include "third_party/npapi/bindings/npfunctions.h" |
| 27 #include "third_party/npapi/bindings/npruntime.h" | 28 #include "third_party/npapi/bindings/npruntime.h" |
| 28 | 29 |
| 29 namespace remoting { | 30 namespace remoting { |
| 30 | 31 |
| 31 class ChromotingHost; | 32 class ChromotingHost; |
| 32 class DesktopEnvironment; | 33 class DesktopEnvironment; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 base::TimeDelta access_code_lifetime_; | 171 base::TimeDelta access_code_lifetime_; |
| 171 | 172 |
| 172 std::string client_username_; | 173 std::string client_username_; |
| 173 ScopedRefNPObject log_debug_info_func_; | 174 ScopedRefNPObject log_debug_info_func_; |
| 174 ScopedRefNPObject on_nat_traversal_policy_changed_func_; | 175 ScopedRefNPObject on_nat_traversal_policy_changed_func_; |
| 175 ScopedRefNPObject on_state_changed_func_; | 176 ScopedRefNPObject on_state_changed_func_; |
| 176 base::PlatformThreadId np_thread_id_; | 177 base::PlatformThreadId np_thread_id_; |
| 177 scoped_refptr<PluginMessageLoopProxy> plugin_message_loop_proxy_; | 178 scoped_refptr<PluginMessageLoopProxy> plugin_message_loop_proxy_; |
| 178 | 179 |
| 179 scoped_ptr<RegisterSupportHostRequest> register_request_; | 180 scoped_ptr<RegisterSupportHostRequest> register_request_; |
| 181 scoped_refptr<LogToServer> log_to_server_; |
| 180 scoped_refptr<MutableHostConfig> host_config_; | 182 scoped_refptr<MutableHostConfig> host_config_; |
| 181 ChromotingHostContext host_context_; | 183 ChromotingHostContext host_context_; |
| 182 scoped_ptr<DesktopEnvironment> desktop_environment_; | 184 scoped_ptr<DesktopEnvironment> desktop_environment_; |
| 183 | 185 |
| 184 scoped_refptr<ChromotingHost> host_; | 186 scoped_refptr<ChromotingHost> host_; |
| 185 int failed_login_attempts_; | 187 int failed_login_attempts_; |
| 186 | 188 |
| 187 UiStrings ui_strings_; | 189 UiStrings ui_strings_; |
| 188 base::Lock ui_strings_lock_; | 190 base::Lock ui_strings_lock_; |
| 189 | 191 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 209 // it can be executed after at least one successful policy read. This | 211 // it can be executed after at least one successful policy read. This |
| 210 // variable contains the thunk if it is necessary. | 212 // variable contains the thunk if it is necessary. |
| 211 base::Closure pending_connect_; | 213 base::Closure pending_connect_; |
| 212 }; | 214 }; |
| 213 | 215 |
| 214 } // namespace remoting | 216 } // namespace remoting |
| 215 | 217 |
| 216 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject); | 218 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject); |
| 217 | 219 |
| 218 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 220 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
| OLD | NEW |