OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "webkit/glue/plugins/test/plugin_client.h" | 5 #include "webkit/plugins/npapi/test/plugin_client.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "webkit/glue/plugins/test/plugin_test.h" | 8 #include "webkit/plugins/npapi/test/plugin_test.h" |
9 #include "webkit/glue/plugins/test/plugin_test_factory.h" | 9 #include "webkit/plugins/npapi/test/plugin_test_factory.h" |
10 | 10 |
11 namespace NPAPIClient { | 11 namespace NPAPIClient { |
12 | 12 |
13 NPNetscapeFuncs* PluginClient::host_functions_; | 13 NPNetscapeFuncs* PluginClient::host_functions_; |
14 | 14 |
15 NPError PluginClient::GetEntryPoints(NPPluginFuncs* pFuncs) { | 15 NPError PluginClient::GetEntryPoints(NPPluginFuncs* pFuncs) { |
16 if (pFuncs == NULL) | 16 if (pFuncs == NULL) |
17 return NPERR_INVALID_FUNCTABLE_ERROR; | 17 return NPERR_INVALID_FUNCTABLE_ERROR; |
18 | 18 |
19 if (pFuncs->size < sizeof(NPPluginFuncs)) | 19 if (pFuncs->size < sizeof(NPPluginFuncs)) |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 231 |
232 void NPP_URLRedirectNotify(NPP instance, const char* url, int32_t status, | 232 void NPP_URLRedirectNotify(NPP instance, const char* url, int32_t status, |
233 void* notify_data) { | 233 void* notify_data) { |
234 if (instance) { | 234 if (instance) { |
235 NPAPIClient::PluginTest* plugin = | 235 NPAPIClient::PluginTest* plugin = |
236 reinterpret_cast<NPAPIClient::PluginTest*>(instance->pdata); | 236 reinterpret_cast<NPAPIClient::PluginTest*>(instance->pdata); |
237 plugin->URLRedirectNotify(url, status, notify_data); | 237 plugin->URLRedirectNotify(url, status, notify_data); |
238 } | 238 } |
239 } | 239 } |
240 } // extern "C" | 240 } // extern "C" |
OLD | NEW |