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

Unified Diff: chrome_frame/chrome_frame_npapi_entrypoints.cc

Issue 6223003: Add support in the ChromeFrame NPAPI plugin for receiving URL redirect notifi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_frame_npapi_entrypoints.h ('k') | chrome_frame/np_browser_functions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,24 @@
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";
+ npapi::URLRedirectResponse(instance, notify_data, false);
+ return;
+ }
+ plugin_instance->URLRedirectNotify(url, status, notify_data);
+}
+
} // namespace chrome_frame
« no previous file with comments | « chrome_frame/chrome_frame_npapi_entrypoints.h ('k') | chrome_frame/np_browser_functions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698