OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ref_counted.h" | |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/ref_counted.h" | |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/string16.h" | |
15 #include "base/synchronization/cancellation_flag.h" | 16 #include "base/synchronization/cancellation_flag.h" |
16 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
17 #include "base/synchronization/waitable_event.h" | 18 #include "base/synchronization/waitable_event.h" |
18 #include "base/string16.h" | 19 #include "base/thread_task_runner_handle.h" |
19 #include "base/threading/platform_thread.h" | 20 #include "base/threading/platform_thread.h" |
20 #include "base/threading/thread.h" | 21 #include "base/threading/thread.h" |
21 #include "base/time.h" | 22 #include "base/time.h" |
22 #include "remoting/base/auto_thread_task_runner.h" | 23 #include "remoting/base/auto_thread_task_runner.h" |
23 #include "remoting/host/chromoting_host_context.h" | 24 #include "remoting/host/chromoting_host_context.h" |
24 #include "remoting/host/log_to_server.h" | 25 #include "remoting/host/log_to_server.h" |
25 #include "remoting/host/plugin/host_plugin_utils.h" | 26 #include "remoting/host/plugin/host_plugin_utils.h" |
26 #include "remoting/host/setup/daemon_controller.h" | 27 #include "remoting/host/setup/daemon_controller.h" |
27 #include "remoting/host/ui_strings.h" | 28 #include "remoting/host/ui_strings.h" |
28 #include "remoting/jingle_glue/xmpp_signal_strategy.h" | 29 #include "remoting/jingle_glue/xmpp_signal_strategy.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
250 | 251 |
251 // Set an exception for the current call. | 252 // Set an exception for the current call. |
252 void SetException(const std::string& exception_string); | 253 void SetException(const std::string& exception_string); |
253 | 254 |
254 ////////////////////////////////////////////////////////// | 255 ////////////////////////////////////////////////////////// |
255 // Plugin state variables shared between It2Me and Me2Me. | 256 // Plugin state variables shared between It2Me and Me2Me. |
256 | 257 |
257 NPP plugin_; | 258 NPP plugin_; |
258 NPObject* parent_; | 259 NPObject* parent_; |
259 scoped_refptr<AutoThreadTaskRunner> plugin_task_runner_; | 260 scoped_refptr<AutoThreadTaskRunner> plugin_task_runner_; |
261 base::ThreadTaskRunnerHandle plugin_task_runner_handle_; | |
Sergey Ulanov
2013/04/04 21:04:26
Awesome. Does this work properly? I remember there
alexeypa (please no reviews)
2013/04/06 18:07:56
Nope. :-( It breaks when Chrome and Chromoting sha
| |
260 | 262 |
261 // True if we're in the middle of handling a log message. | 263 // True if we're in the middle of handling a log message. |
262 bool am_currently_logging_; | 264 bool am_currently_logging_; |
263 | 265 |
264 ScopedRefNPObject log_debug_info_func_; | 266 ScopedRefNPObject log_debug_info_func_; |
265 | 267 |
266 ////////////////////////////////////////////////////////// | 268 ////////////////////////////////////////////////////////// |
267 // It2Me host state. | 269 // It2Me host state. |
268 | 270 |
269 // Internal implementation of the It2Me host function. | 271 // Internal implementation of the It2Me host function. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
305 // Used to cancel pending tasks for this object when it is destroyed. | 307 // Used to cancel pending tasks for this object when it is destroyed. |
306 base::WeakPtrFactory<HostNPScriptObject> weak_factory_; | 308 base::WeakPtrFactory<HostNPScriptObject> weak_factory_; |
307 base::WeakPtr<HostNPScriptObject> weak_ptr_; | 309 base::WeakPtr<HostNPScriptObject> weak_ptr_; |
308 | 310 |
309 DISALLOW_COPY_AND_ASSIGN(HostNPScriptObject); | 311 DISALLOW_COPY_AND_ASSIGN(HostNPScriptObject); |
310 }; | 312 }; |
311 | 313 |
312 } // namespace remoting | 314 } // namespace remoting |
313 | 315 |
314 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 316 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
OLD | NEW |