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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.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/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 2aef8845c49e0eefc3ecf0704d817dddd0b61b04..bba9fe1aed48681ecea9c8a7a8a0b2ccc1c40676 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -630,6 +630,11 @@ bool WebLocalFrameImpl::hasVerticalScrollbar() const {
return frame() && frame()->view() && frame()->view()->verticalScrollbar();
}
+void WebLocalFrameImpl::collapse(bool collapsed) {
+ DCHECK(frame()->owner()->isLocal());
+ frame()->owner()->setCollapsedByClient(collapsed);
+}
+
WebView* WebLocalFrameImpl::view() const {
return viewImpl();
}

Powered by Google App Engine
This is Rietveld 408576698