diff options
author | csharrison <csharrison@chromium.org> | 2016-02-03 15:21:15 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-03 23:22:24 +0000 |
commit | a2280cd27bd434f6033d3ab0c70886c06e3882b0 (patch) | |
tree | f1782025e9a46e1018c81f423cce43afbe728a4d /content/browser/security_exploit_browsertest.cc | |
parent | 34cfec966c191e72364f6ba1435e67d11d7b3c01 (diff) | |
download | chromium_src-a2280cd27bd434f6033d3ab0c70886c06e3882b0.zip chromium_src-a2280cd27bd434f6033d3ab0c70886c06e3882b0.tar.gz chromium_src-a2280cd27bd434f6033d3ab0c70886c06e3882b0.tar.bz2 |
Refactored blocked_loaders_map_ to key by render frame route id
This change is a necessary step to completely refactor out render view ids from the ResourceDispatcherHostImpl.
This means that the interface to block, resume, or cancel requests now require passing in the frame routing id and the child id.
The ResourceScheduler, SaveFile, and Downloads still use the RVID.
BUG=472869
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Review URL: https://codereview.chromium.org/1542743002
Cr-Commit-Position: refs/heads/master@{#373380}
Diffstat (limited to 'content/browser/security_exploit_browsertest.cc')
-rw-r--r-- | content/browser/security_exploit_browsertest.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/content/browser/security_exploit_browsertest.cc b/content/browser/security_exploit_browsertest.cc index 6714e9a..a2ca928 100644 --- a/content/browser/security_exploit_browsertest.cc +++ b/content/browser/security_exploit_browsertest.cc @@ -139,12 +139,7 @@ void TryCreateDuplicateRequestIds(Shell* shell, bool block_loaders) { if (block_loaders) { // Test the case where loaders are placed into blocked_loaders_map_. - int child_id = rfh->GetProcess()->GetID(); - BrowserThread::PostTask( - BrowserThread::IO, FROM_HERE, - base::Bind(&ResourceDispatcherHost::BlockRequestsForRoute, - base::Unretained(ResourceDispatcherHost::Get()), child_id, - rfh->GetRoutingID())); + ResourceDispatcherHost::BlockRequestsForFrameFromUI(rfh); } // URLRequestSlowDownloadJob waits for another request to kFinishDownloadUrl |