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

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

Issue 42384: Remove useless BlockedRequest class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 9 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') | no next file » | 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 11892)
+++ chrome/browser/renderer_host/resource_dispatcher_host.cc (working copy)
@@ -1012,7 +1012,7 @@
BlockedRequestMap::const_iterator iter = blocked_requests_map_.find(pair_id);
if (iter != blocked_requests_map_.end()) {
// The request should be blocked.
- iter->second->push_back(BlockedRequest(request));
+ iter->second->push_back(request);
return;
}
@@ -1503,13 +1503,14 @@
req_iter != requests->end(); ++req_iter) {
// Remove the memory credit that we added when pushing the request onto
// the blocked list.
- ExtraRequestInfo* info = ExtraInfoForRequest(req_iter->url_request);
+ URLRequest* request = *req_iter;
+ ExtraRequestInfo* info = ExtraInfoForRequest(request);
IncrementOutstandingRequestsMemoryCost(-1 * info->memory_cost,
info->process_id);
if (cancel_requests)
- delete req_iter->url_request;
+ delete request;
else
- BeginRequestInternal(req_iter->url_request);
+ BeginRequestInternal(request);
}
delete requests;
« no previous file with comments | « chrome/browser/renderer_host/resource_dispatcher_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698