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

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: Rebased to tip 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 8e0425adff3e7482e4dcbe7330b80f3963351131..2fcedbce3de7dda0751507525ca16611b2bc1fd5 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -224,6 +224,15 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
// RenderFrame. See BindingsPolicy for details.
virtual int GetEnabledBindings() const = 0;
+ // Causes all new requests for the root RenderFrameHost and its children to
+ // be blocked (not being started) until ResumeBlockedRequestsForFrame is
+ // called.
+ virtual void BlockRequestsForFrame() = 0;
+
+ // Resumes any blocked request for the specified root RenderFrameHost and
+ // child frame hosts.
+ virtual void ResumeBlockedRequestsForFrame() = 0;
+
#if defined(OS_ANDROID)
// Returns an InterfaceProvider for Java-implemented interfaces that are
// scoped to this RenderFrameHost. This provides access to interfaces
« 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