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

Unified Diff: third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Extend tests, fix redirects. Non-PlzNavigate version still broken. Created 3 years, 10 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: third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
index 3cb385991a22641af04526cd8fc0445b91c6569b..27ade9c7dc1f5894422eb4ac02717643b061c1ae 100644
--- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
@@ -136,6 +136,11 @@ bool WebRemoteFrameImpl::hasVerticalScrollbar() const {
return false;
}
+void WebRemoteFrameImpl::collapse(bool collapsed) {
+ DCHECK(frame()->owner()->isLocal());
+ frame()->owner()->setCollapsedByClient(collapsed);
+}
+
WebView* WebRemoteFrameImpl::view() const {
if (!frame())
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698