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

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

Issue 174383: Fixes a crash caused due to a call to NPP_DestroyStream occuring in the conte... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/string_util.h" 5 #include "base/string_util.h"
6 #include "webkit/glue/plugins/test/plugin_client.h" 6 #include "webkit/glue/plugins/test/plugin_client.h"
7 #include "webkit/glue/plugins/test/plugin_arguments_test.h" 7 #include "webkit/glue/plugins/test/plugin_arguments_test.h"
8 #include "webkit/glue/plugins/test/plugin_delete_plugin_in_stream_test.h" 8 #include "webkit/glue/plugins/test/plugin_delete_plugin_in_stream_test.h"
9 #include "webkit/glue/plugins/test/plugin_get_javascript_url_test.h" 9 #include "webkit/glue/plugins/test/plugin_get_javascript_url_test.h"
10 #include "webkit/glue/plugins/test/plugin_geturl_test.h" 10 #include "webkit/glue/plugins/test/plugin_geturl_test.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 if (test_name.empty()) 92 if (test_name.empty())
93 return NPERR_GENERIC_ERROR; // no name found 93 return NPERR_GENERIC_ERROR; // no name found
94 94
95 NPError ret = NPERR_GENERIC_ERROR; 95 NPError ret = NPERR_GENERIC_ERROR;
96 bool windowless_plugin = false; 96 bool windowless_plugin = false;
97 97
98 NPAPIClient::PluginTest *new_test = NULL; 98 NPAPIClient::PluginTest *new_test = NULL;
99 if (test_name == "arguments") { 99 if (test_name == "arguments") {
100 new_test = new NPAPIClient::PluginArgumentsTest(instance, 100 new_test = new NPAPIClient::PluginArgumentsTest(instance,
101 NPAPIClient::PluginClient::HostFunctions()); 101 NPAPIClient::PluginClient::HostFunctions());
102 } else if (test_name == "geturl") { 102 } else if (test_name == "geturl" || test_name == "geturl_404_response") {
103 new_test = new NPAPIClient::PluginGetURLTest(instance, 103 new_test = new NPAPIClient::PluginGetURLTest(instance,
104 NPAPIClient::PluginClient::HostFunctions()); 104 NPAPIClient::PluginClient::HostFunctions());
105 } else if (test_name == "npobject_proxy") { 105 } else if (test_name == "npobject_proxy") {
106 new_test = new NPAPIClient::NPObjectProxyTest(instance, 106 new_test = new NPAPIClient::NPObjectProxyTest(instance,
107 NPAPIClient::PluginClient::HostFunctions()); 107 NPAPIClient::PluginClient::HostFunctions());
108 #if defined(OS_WIN) 108 #if defined(OS_WIN)
109 // TODO(port): plugin_windowless_test.*. 109 // TODO(port): plugin_windowless_test.*.
110 } else if (test_name == "execute_script_delete_in_paint" || 110 } else if (test_name == "execute_script_delete_in_paint" ||
111 test_name == "execute_script_delete_in_mouse_move" || 111 test_name == "execute_script_delete_in_mouse_move" ||
112 test_name == "delete_frame_test" || 112 test_name == "delete_frame_test" ||
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 (NPAPIClient::PluginTest*)instance->pdata; 300 (NPAPIClient::PluginTest*)instance->pdata;
301 301
302 return plugin->HandleEvent(event); 302 return plugin->HandleEvent(event);
303 } 303 }
304 304
305 void* NPP_GetJavaClass(void) { 305 void* NPP_GetJavaClass(void) {
306 // XXXMB - do work here. 306 // XXXMB - do work here.
307 return NULL; 307 return NULL;
308 } 308 }
309 } // extern "C" 309 } // extern "C"
OLDNEW
« no previous file with comments | « chrome/test/interactive_ui/npapi_interactive_test.cc ('k') | webkit/glue/plugins/test/plugin_geturl_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698