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

Unified Diff: chrome_frame/npapi_url_request.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/npapi_url_request.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/npapi_url_request.cc
===================================================================
--- chrome_frame/npapi_url_request.cc (revision 71071)
+++ chrome_frame/npapi_url_request.cc (working copy)
@@ -418,6 +418,18 @@
}
}
+void NPAPIUrlRequestManager::UrlRedirectNotify(const char* url, int status,
+ void* notify_data) {
+ NPAPIUrlRequest* request = RequestFromNotifyData(notify_data);
+ if (request) {
+ delegate_->OnResponseStarted(request->id(), "", "", 0, base::Time(),
+ url, status);
+ } else {
+ NOTREACHED() << "Received unexpected redirect notification for url:"
+ << url;
+ }
+}
+
scoped_refptr<NPAPIUrlRequest> NPAPIUrlRequestManager::LookupRequest(
int request_id) {
RequestMap::iterator index = request_map_.find(request_id);
« no previous file with comments | « chrome_frame/npapi_url_request.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698