| 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_plugin_utils.h" | 5 #include "remoting/host/plugin/host_plugin_utils.h" |
| 6 | 6 |
| 7 namespace remoting { | 7 namespace remoting { |
| 8 | 8 |
| 9 NPNetscapeFuncs* g_npnetscape_funcs = NULL; | 9 NPNetscapeFuncs* g_npnetscape_funcs = NULL; |
| 10 | 10 |
| 11 std::string StringFromNPIdentifier(NPIdentifier identifier) { | 11 std::string StringFromNPIdentifier(NPIdentifier identifier) { |
| 12 if (!g_npnetscape_funcs->identifierisstring(identifier)) | 12 if (!g_npnetscape_funcs->identifierisstring(identifier)) |
| 13 return std::string(); | 13 return std::string(); |
| 14 NPUTF8* np_string = g_npnetscape_funcs->utf8fromidentifier(identifier); | 14 NPUTF8* np_string = g_npnetscape_funcs->utf8fromidentifier(identifier); |
| 15 std::string string(np_string); | 15 std::string string(np_string); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 34 return variant; | 34 return variant; |
| 35 } | 35 } |
| 36 | 36 |
| 37 NPObject* ObjectFromNPVariant(const NPVariant& variant) { | 37 NPObject* ObjectFromNPVariant(const NPVariant& variant) { |
| 38 if (!NPVARIANT_IS_OBJECT(variant)) | 38 if (!NPVARIANT_IS_OBJECT(variant)) |
| 39 return NULL; | 39 return NULL; |
| 40 return NPVARIANT_TO_OBJECT(variant); | 40 return NPVARIANT_TO_OBJECT(variant); |
| 41 } | 41 } |
| 42 | 42 |
| 43 } // namespace remoting | 43 } // namespace remoting |
| OLD | NEW |