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

Unified Diff: chrome/browser/renderer_host/resource_dispatcher_host.cc

Issue 67019: URLRequest::Interceptor enhancements... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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/browser/renderer_host/resource_dispatcher_host.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/resource_dispatcher_host.cc
===================================================================
--- chrome/browser/renderer_host/resource_dispatcher_host.cc (revision 13871)
+++ chrome/browser/renderer_host/resource_dispatcher_host.cc (working copy)
@@ -402,7 +402,7 @@
upload_size);
extra_info->allow_download =
ResourceType::IsFrame(request_data.resource_type);
- request->set_user_data(extra_info); // takes pointer ownership
+ SetExtraInfoForRequest(request, extra_info); // request takes ownership
BeginRequestInternal(request);
}
@@ -541,7 +541,7 @@
0 /* upload_size */);
extra_info->allow_download = true;
extra_info->is_download = true;
- request->set_user_data(extra_info); // Takes pointer ownership.
+ SetExtraInfoForRequest(request, extra_info); // request takes ownership
BeginRequestInternal(request);
}
@@ -596,7 +596,7 @@
// Just saving some resources we need, disallow downloading.
extra_info->allow_download = false;
extra_info->is_download = false;
- request->set_user_data(extra_info); // Takes pointer ownership.
+ SetExtraInfoForRequest(request, extra_info); // request takes ownership
BeginRequestInternal(request);
}
« no previous file with comments | « chrome/browser/renderer_host/resource_dispatcher_host.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698