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

Unified Diff: content/public/browser/render_frame_host.h

Issue 2758993002: Move the functions which block, resume and cancel requests for a frame route id out of ResourceDisp… (Closed)
Patch Set: Remove DCHECK for RDHI on the same lines as the old code Created 3 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 | « content/public/browser/BUILD.gn ('k') | content/public/browser/resource_dispatcher_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index 4bb87a6e1661799620b606dca4faa1db5fc0aba2..c6ffa80c8e6e4a91860292dc387ef9ee3631e186 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -59,6 +59,17 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
// Returns a RenderFrameHost given its accessibility tree ID.
static RenderFrameHost* FromAXTreeID(int ax_tree_id);
+ // Causes all new requests for the root RenderFrameHost and its children to be
+ // blocked (not being started) until ResumeBlockedRequestsForFrame is called.
+ static void BlockRequestsForFrame(RenderFrameHost* root_frame_host);
jam 2017/03/20 21:56:09 why are these static instead of just methods?
ananta 2017/03/20 23:03:14 Thanks done
+
+ // Resumes any blocked request for the specified root RenderFrameHost and
+ // child frame hosts.
+ static void ResumeBlockedRequestsForFrame(RenderFrameHost* root_frame_host);
+
+ // Cancels any blocked request for the frame and its subframes.
+ static void CancelBlockedRequestsForFrame(RenderFrameHost* root_frame_host);
jam 2017/03/20 21:56:09 this is only called from inside content, so just p
ananta 2017/03/20 23:03:14 Done.
+
~RenderFrameHost() override {}
// Returns the route id for this frame.
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/resource_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698