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

Unified Diff: chrome_frame/chrome_frame_npapi.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.h ('k') | chrome_frame/chrome_frame_npapi_entrypoints.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_npapi.cc
===================================================================
--- chrome_frame/chrome_frame_npapi.cc (revision 71071)
+++ chrome_frame/chrome_frame_npapi.cc (working copy)
@@ -1509,3 +1509,15 @@
NPError ChromeFrameNPAPI::DestroyStream(NPStream* stream, NPReason reason) {
return url_fetcher_.DestroyStream(stream, reason);
}
+
+void ChromeFrameNPAPI::URLRedirectNotify(const char* url, int status,
+ void* notify_data) {
+ DVLOG(1) << __FUNCTION__
+ << "Received redirect notification for url:"
+ << url;
+ // Inform chrome about the redirect and disallow the current redirect
+ // attempt.
+ url_fetcher_.UrlRedirectNotify(url, status, notify_data);
+ npapi::URLRedirectResponse(instance_, notify_data, false);
+}
+
« no previous file with comments | « chrome_frame/chrome_frame_npapi.h ('k') | chrome_frame/chrome_frame_npapi_entrypoints.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698