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

Unified Diff: chrome_frame/np_browser_functions.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/np_browser_functions.h ('k') | chrome_frame/npapi_url_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/np_browser_functions.cc
===================================================================
--- chrome_frame/np_browser_functions.cc (revision 71071)
+++ chrome_frame/np_browser_functions.cc (working copy)
@@ -75,6 +75,7 @@
NPN_GetValueForURLPtr g_getvalueforurl = NULL;
NPN_SetValueForURLPtr g_setvalueforurl = NULL;
NPN_GetAuthenticationInfoPtr g_getauthenticationinfo = NULL;
+NPN_URLRedirectResponsePtr g_urlredirectresponse = NULL;
// Must be called prior to calling any of the browser functions below.
void InitializeBrowserFunctions(NPNetscapeFuncs* functions) {
@@ -128,6 +129,7 @@
g_enumerate = functions->enumerate;
g_pluginthreadasynccall = functions->pluginthreadasynccall;
g_construct = functions->construct;
+ g_urlredirectresponse = functions->urlredirectresponse;
if (g_version.v.minor >= NPVERS_HAS_URL_AND_AUTH_INFO) {
g_getvalueforurl = functions->getvalueforurl;
@@ -492,6 +494,14 @@
realm, username, ulen, password, plen);
}
+void URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) {
+ if (!g_urlredirectresponse) {
+ NOTREACHED() << "Unexpected call to NPN_URLRedirectResponse";
+ return;
+ }
+ return g_urlredirectresponse(instance, notify_data, allow);
+}
+
std::string StringFromIdentifier(NPIdentifier identifier) {
std::string ret;
NPUTF8* utf8 = UTF8FromIdentifier(identifier);
@@ -517,4 +527,3 @@
NULL_TO_NPVARIANT(*var);
}
}
-
« no previous file with comments | « chrome_frame/np_browser_functions.h ('k') | chrome_frame/npapi_url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698