| 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 #include "remoting/host/host_script_object.h" | 5 #include "remoting/host/plugin/host_script_object.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/task.h" | 9 #include "base/task.h" |
| 10 #include "base/threading/platform_thread.h" | 10 #include "base/threading/platform_thread.h" |
| 11 #include "remoting/base/auth_token_util.h" | 11 #include "remoting/base/auth_token_util.h" |
| 12 #include "remoting/host/chromoting_host.h" | 12 #include "remoting/host/chromoting_host.h" |
| 13 #include "remoting/host/chromoting_host_context.h" | 13 #include "remoting/host/chromoting_host_context.h" |
| 14 #include "remoting/host/host_config.h" | 14 #include "remoting/host/host_config.h" |
| 15 #include "remoting/host/host_key_pair.h" | 15 #include "remoting/host/host_key_pair.h" |
| 16 #include "remoting/host/host_plugin_utils.h" | |
| 17 #include "remoting/host/in_memory_host_config.h" | 16 #include "remoting/host/in_memory_host_config.h" |
| 17 #include "remoting/host/plugin/host_plugin_utils.h" |
| 18 #include "remoting/host/register_support_host_request.h" | 18 #include "remoting/host/register_support_host_request.h" |
| 19 #include "remoting/host/support_access_verifier.h" | 19 #include "remoting/host/support_access_verifier.h" |
| 20 | 20 |
| 21 namespace remoting { | 21 namespace remoting { |
| 22 | 22 |
| 23 // Supported Javascript interface: | 23 // Supported Javascript interface: |
| 24 // readonly attribute string accessCode; | 24 // readonly attribute string accessCode; |
| 25 // readonly attribute int state; | 25 // readonly attribute int state; |
| 26 // | 26 // |
| 27 // state: { | 27 // state: { |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 task); | 519 task); |
| 520 } | 520 } |
| 521 | 521 |
| 522 void HostNPScriptObject::NPTaskSpringboard(void* task) { | 522 void HostNPScriptObject::NPTaskSpringboard(void* task) { |
| 523 Task* real_task = reinterpret_cast<Task*>(task); | 523 Task* real_task = reinterpret_cast<Task*>(task); |
| 524 real_task->Run(); | 524 real_task->Run(); |
| 525 delete real_task; | 525 delete real_task; |
| 526 } | 526 } |
| 527 | 527 |
| 528 } // namespace remoting | 528 } // namespace remoting |
| OLD | NEW |