OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/child/plugin_param_traits.h" | 5 #include "content/child/plugin_param_traits.h" |
6 | 6 |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "content/child/npapi/plugin_host.h" | 8 #include "content/child/npapi/plugin_host.h" |
9 #include "content/child/npruntime_util.h" | |
10 #include "ipc/ipc_message_utils.h" | 9 #include "ipc/ipc_message_utils.h" |
11 #include "third_party/WebKit/public/web/WebBindings.h" | 10 #include "third_party/WebKit/public/web/WebBindings.h" |
12 | 11 |
13 namespace content { | 12 namespace content { |
14 | 13 |
15 NPIdentifier_Param::NPIdentifier_Param() | 14 NPIdentifier_Param::NPIdentifier_Param() |
16 : identifier() { | 15 : identifier() { |
17 } | 16 } |
18 | 17 |
19 NPIdentifier_Param::~NPIdentifier_Param() { | 18 NPIdentifier_Param::~NPIdentifier_Param() { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 NPUTF8* str = WebKit::WebBindings::utf8FromIdentifier(p.identifier); | 128 NPUTF8* str = WebKit::WebBindings::utf8FromIdentifier(p.identifier); |
130 l->append(str); | 129 l->append(str); |
131 content::PluginHost::Singleton()->host_functions()->memfree(str); | 130 content::PluginHost::Singleton()->host_functions()->memfree(str); |
132 } else { | 131 } else { |
133 l->append(base::IntToString( | 132 l->append(base::IntToString( |
134 WebKit::WebBindings::intFromIdentifier(p.identifier))); | 133 WebKit::WebBindings::intFromIdentifier(p.identifier))); |
135 } | 134 } |
136 } | 135 } |
137 | 136 |
138 } // namespace IPC | 137 } // namespace IPC |
OLD | NEW |