Chromium Code Reviews| Index: chrome_frame/chrome_frame_npapi_entrypoints.cc |
| =================================================================== |
| --- chrome_frame/chrome_frame_npapi_entrypoints.cc (revision 71071) |
| +++ chrome_frame/chrome_frame_npapi_entrypoints.cc (working copy) |
| @@ -37,6 +37,7 @@ |
| plugin_funcs->urlnotify = chrome_frame::NPP_URLNotify; |
| plugin_funcs->getvalue = chrome_frame::NPP_GetValue; |
| plugin_funcs->setvalue = chrome_frame::NPP_SetValue; |
| + plugin_funcs->urlredirectnotify = chrome_frame::NPP_URLRedirectNotify; |
| return NPERR_NO_ERROR; |
| } |
| @@ -194,11 +195,23 @@ |
| ChromeFrameNPAPI::ChromeFrameInstanceFromPluginInstance(instance); |
| if (plugin_instance == NULL) { |
| - NOTREACHED(); |
| + NOTREACHED() << "Failed to find plugin instance"; |
| return; |
| } |
| plugin_instance->Print(print_info); |
| } |
| +void NPP_URLRedirectNotify(NPP instance, const char* url, int status, |
| + void* notify_data) { |
| + ChromeFrameNPAPI* plugin_instance = |
| + ChromeFrameNPAPI::ChromeFrameInstanceFromPluginInstance(instance); |
| + |
| + if (plugin_instance == NULL) { |
| + NOTREACHED() << "Failed to find plugin instance"; |
| + return; |
|
amit
2011/01/12 21:50:48
if we don't get a valid instance then maybe we sho
ananta
2011/01/12 22:01:41
Done.
|
| + } |
| + plugin_instance->URLRedirectNotify(url, status, notify_data); |
| +} |
| + |
| } // namespace chrome_frame |