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

Unified Diff: content/browser/frame_host/navigation_handle_impl.cc

Issue 2180933002: Add experimental code behind a flag for Content Size Policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on dependent PS Created 4 years, 5 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 | « no previous file | content/browser/loader/DEPS » ('j') | content/browser/loader/content_size_resource_handler.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigation_handle_impl.cc
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc
index 47dc9a23962c4e42ceaede2f50cd7418f4283fe0..5279ecf2eae554eb394dd7638c5996d3afb181e9 100644
--- a/content/browser/frame_host/navigation_handle_impl.cc
+++ b/content/browser/frame_host/navigation_handle_impl.cc
@@ -11,6 +11,7 @@
#include "content/browser/frame_host/frame_tree_node.h"
#include "content/browser/frame_host/navigator.h"
#include "content/browser/frame_host/navigator_delegate.h"
+#include "content/browser/loader/loader_io_thread_notifier.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/common/frame_messages.h"
#include "content/common/resource_request_body_impl.h"
@@ -561,6 +562,11 @@ void NavigationHandleImpl::RegisterNavigationThrottles() {
RenderFrameDevToolsAgentHost::CreateThrottleForNavigation(this);
if (devtools_throttle)
throttles_.push_back(devtools_throttle.release());
+
+ NavigationThrottle* content_size_throttle =
+ LoaderIOThreadNotifier::MaybeCreateThrottle(this);
+ if (content_size_throttle)
+ throttles_.push_back(base::WrapUnique(content_size_throttle));
}
} // namespace content
« no previous file with comments | « no previous file | content/browser/loader/DEPS » ('j') | content/browser/loader/content_size_resource_handler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698