| 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/plugin/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/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
| 10 #include "base/sys_string_conversions.h" | 10 #include "base/sys_string_conversions.h" |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 kAttrNameConnected, | 330 kAttrNameConnected, |
| 331 kAttrNameDisconnecting, | 331 kAttrNameDisconnecting, |
| 332 kAttrNameError | 332 kAttrNameError |
| 333 }; | 333 }; |
| 334 for (size_t i = 0; i < arraysize(entries); ++i) { | 334 for (size_t i = 0; i < arraysize(entries); ++i) { |
| 335 values->push_back(entries[i]); | 335 values->push_back(entries[i]); |
| 336 } | 336 } |
| 337 return true; | 337 return true; |
| 338 } | 338 } |
| 339 | 339 |
| 340 void HostNPScriptObject::OnSignallingConnected(SignalStrategy* signal_strategy, | 340 void HostNPScriptObject::OnSignallingConnected( |
| 341 const std::string& full_jid) { | 341 SignalStrategy* signal_strategy) { |
| 342 } | 342 } |
| 343 | 343 |
| 344 void HostNPScriptObject::OnSignallingDisconnected() { | 344 void HostNPScriptObject::OnSignallingDisconnected() { |
| 345 } | 345 } |
| 346 | 346 |
| 347 void HostNPScriptObject::OnAccessDenied() { | 347 void HostNPScriptObject::OnAccessDenied() { |
| 348 DCHECK(host_context_.network_message_loop()->BelongsToCurrentThread()); | 348 DCHECK(host_context_.network_message_loop()->BelongsToCurrentThread()); |
| 349 | 349 |
| 350 ++failed_login_attempts_; | 350 ++failed_login_attempts_; |
| 351 if (failed_login_attempts_ == kMaxLoginAttempts) | 351 if (failed_login_attempts_ == kMaxLoginAttempts) |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 uint32_t argCount) { | 842 uint32_t argCount) { |
| 843 NPVariant np_result; | 843 NPVariant np_result; |
| 844 bool is_good = g_npnetscape_funcs->invokeDefault(plugin_, func, args, | 844 bool is_good = g_npnetscape_funcs->invokeDefault(plugin_, func, args, |
| 845 argCount, &np_result); | 845 argCount, &np_result); |
| 846 if (is_good) | 846 if (is_good) |
| 847 g_npnetscape_funcs->releasevariantvalue(&np_result); | 847 g_npnetscape_funcs->releasevariantvalue(&np_result); |
| 848 return is_good; | 848 return is_good; |
| 849 } | 849 } |
| 850 | 850 |
| 851 } // namespace remoting | 851 } // namespace remoting |
| OLD | NEW |