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/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/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/synchronization/cancellation_flag.h" | 15 #include "base/synchronization/cancellation_flag.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
18 #include "base/string16.h" | 18 #include "base/string16.h" |
19 #include "base/threading/platform_thread.h" | 19 #include "base/threading/platform_thread.h" |
20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
21 #include "base/time.h" | 21 #include "base/time.h" |
22 #include "remoting/base/auto_thread_task_runner.h" | 22 #include "remoting/base/auto_thread_task_runner.h" |
23 #include "remoting/host/chromoting_host_context.h" | 23 #include "remoting/host/chromoting_host_context.h" |
24 #include "remoting/host/host_key_pair.h" | |
25 #include "remoting/host/log_to_server.h" | 24 #include "remoting/host/log_to_server.h" |
26 #include "remoting/host/plugin/host_plugin_utils.h" | 25 #include "remoting/host/plugin/host_plugin_utils.h" |
27 #include "remoting/host/setup/daemon_controller.h" | 26 #include "remoting/host/setup/daemon_controller.h" |
28 #include "remoting/host/ui_strings.h" | 27 #include "remoting/host/ui_strings.h" |
29 #include "remoting/jingle_glue/xmpp_signal_strategy.h" | 28 #include "remoting/jingle_glue/xmpp_signal_strategy.h" |
29 #include "remoting/protocol/key_pair.h" | |
Wez
2013/02/23 03:43:20
Do we actually need this include?
rmsousa
2013/02/26 02:38:52
Done.
| |
30 #include "third_party/npapi/bindings/npapi.h" | 30 #include "third_party/npapi/bindings/npapi.h" |
31 #include "third_party/npapi/bindings/npfunctions.h" | 31 #include "third_party/npapi/bindings/npfunctions.h" |
32 #include "third_party/npapi/bindings/npruntime.h" | 32 #include "third_party/npapi/bindings/npruntime.h" |
33 | 33 |
34 namespace remoting { | 34 namespace remoting { |
35 | 35 |
36 // NPAPI plugin implementation for remoting host script object. | 36 // NPAPI plugin implementation for remoting host script object. |
37 // HostNPScriptObject creates threads that are required to run | 37 // HostNPScriptObject creates threads that are required to run |
38 // ChromotingHost and starts/stops the host on those threads. When | 38 // ChromotingHost and starts/stops the host on those threads. When |
39 // destroyed it synchronously shuts down the host and all threads. | 39 // destroyed it synchronously shuts down the host and all threads. |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
306 // Used to cancel pending tasks for this object when it is destroyed. | 306 // Used to cancel pending tasks for this object when it is destroyed. |
307 base::WeakPtrFactory<HostNPScriptObject> weak_factory_; | 307 base::WeakPtrFactory<HostNPScriptObject> weak_factory_; |
308 base::WeakPtr<HostNPScriptObject> weak_ptr_; | 308 base::WeakPtr<HostNPScriptObject> weak_ptr_; |
309 | 309 |
310 DISALLOW_COPY_AND_ASSIGN(HostNPScriptObject); | 310 DISALLOW_COPY_AND_ASSIGN(HostNPScriptObject); |
311 }; | 311 }; |
312 | 312 |
313 } // namespace remoting | 313 } // namespace remoting |
314 | 314 |
315 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 315 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
OLD | NEW |