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

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: 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
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..b48371de5bc0e5c4012b00090709f6d6074116dd 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,7 +85,7 @@ void AppWindowContentsImpl::OnWindowReady() {
is_window_ready_ = true;
if (is_blocking_requests_) {
is_blocking_requests_ = false;
- content::ResourceDispatcherHost::ResumeBlockedRequestsForFrameFromUI(
+ content::RenderFrameHost::ResumeBlockedRequestsForFrame(
web_contents_->GetMainFrame());
}
}
@@ -127,7 +126,7 @@ void AppWindowContentsImpl::SuspendRenderFrameHost(
if (is_window_ready_)
return;
is_blocking_requests_ = true;
- content::ResourceDispatcherHost::BlockRequestsForFrameFromUI(rfh);
+ content::RenderFrameHost::BlockRequestsForFrame(rfh);
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698