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

Unified Diff: extensions/browser/app_window/app_window_contents.cc

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/resource_dispatcher_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/app_window/app_window_contents.cc
diff --git a/extensions/browser/app_window/app_window_contents.cc b/extensions/browser/app_window/app_window_contents.cc
index b09d7c94a9c6f41a46d89d455363e21ee3ec780d..2478ddeba03723437966037bc5b854f3b7e9aeee 100644
--- a/extensions/browser/app_window/app_window_contents.cc
+++ b/extensions/browser/app_window/app_window_contents.cc
@@ -13,7 +13,6 @@
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
-#include "content/public/browser/resource_dispatcher_host.h"
#include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/renderer_preferences.h"
@@ -86,8 +85,7 @@ void AppWindowContentsImpl::OnWindowReady() {
is_window_ready_ = true;
if (is_blocking_requests_) {
is_blocking_requests_ = false;
- content::ResourceDispatcherHost::ResumeBlockedRequestsForFrameFromUI(
- web_contents_->GetMainFrame());
+ web_contents_->GetMainFrame()->ResumeBlockedRequestsForFrame();
}
}
@@ -127,7 +125,7 @@ void AppWindowContentsImpl::SuspendRenderFrameHost(
if (is_window_ready_)
return;
is_blocking_requests_ = true;
- content::ResourceDispatcherHost::BlockRequestsForFrameFromUI(rfh);
+ rfh->BlockRequestsForFrame();
}
} // namespace extensions
« no previous file with comments | « content/public/browser/resource_dispatcher_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698