Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Side by Side Diff: webkit/plugins/npapi/test/plugin_client.cc

Issue 5996003: Revert "Revert 69755 - Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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"
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/test/plugin_client.h ('k') | webkit/plugins/npapi/test/plugin_create_instance_in_paint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698