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

Unified Diff: content/browser/frame_host/frame_tree_node.h

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Rebase. 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: content/browser/frame_host/frame_tree_node.h
diff --git a/content/browser/frame_host/frame_tree_node.h b/content/browser/frame_host/frame_tree_node.h
index 7a4a0b9e20425f5b7d359840ccbc2d57f2dffbfc..4c0413854a31264530d7f8bfe2ddaa4d72599cdb 100644
--- a/content/browser/frame_host/frame_tree_node.h
+++ b/content/browser/frame_host/frame_tree_node.h
@@ -145,6 +145,15 @@ class CONTENT_EXPORT FrameTreeNode {
return has_committed_real_load_;
}
+ // Returns whether the frame's owner element in the parent frame is collapsed
+ // as per request by the client, i.e. it should not appear in the layout.
+ bool is_frame_owner_collapsed() const { return is_frame_owner_collapsed_; }
+
+ // Sets whether to collapse, i.e. exclude from the layout, the frame's owner
+ // element in the parent frame. Not applicable to main frames, and will have
+ // no effect unless the child frame is embedded using an <iframe> element.
+ void SetFrameOwnerCollapsedState(bool collapsed);
+
// Returns the origin of the last committed page in this frame.
// WARNING: To get the last committed origin for a particular
// RenderFrameHost, use RenderFrameHost::GetLastCommittedOrigin() instead,
@@ -363,6 +372,11 @@ class CONTENT_EXPORT FrameTreeNode {
// about:blank page.
bool has_committed_real_load_;
+ // Whether the frame's owner element in the parent frame is collapsed, i.e. it
+ // does not appear in the layout. Always false for main frames, and has have
+ // no effect unless the child frame is embedded using an <iframe> element.
+ bool is_frame_owner_collapsed_;
+
// Track information that needs to be replicated to processes that have
// proxies for this frame.
FrameReplicationState replication_state_;

Powered by Google App Engine
This is Rietveld 408576698