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

Side by Side Diff: content/browser/frame_host/frame_tree.h

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Addressing review comments Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <iterator> 10 #include <iterator>
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Adds a new child frame to the frame tree. |process_id| is required to 119 // Adds a new child frame to the frame tree. |process_id| is required to
120 // disambiguate |new_routing_id|, and it must match the process of the 120 // disambiguate |new_routing_id|, and it must match the process of the
121 // |parent| node. Otherwise no child is added and this method returns false. 121 // |parent| node. Otherwise no child is added and this method returns false.
122 bool AddFrame(FrameTreeNode* parent, 122 bool AddFrame(FrameTreeNode* parent,
123 int process_id, 123 int process_id,
124 int new_routing_id, 124 int new_routing_id,
125 blink::WebTreeScopeType scope, 125 blink::WebTreeScopeType scope,
126 const std::string& frame_name, 126 const std::string& frame_name,
127 const std::string& frame_unique_name, 127 const std::string& frame_unique_name,
128 blink::WebSandboxFlags sandbox_flags, 128 blink::WebSandboxFlags sandbox_flags,
129 const ParsedFeaturePolicyHeader& container_policy,
129 const FrameOwnerProperties& frame_owner_properties); 130 const FrameOwnerProperties& frame_owner_properties);
130 131
131 // Removes a frame from the frame tree. |child|, its children, and objects 132 // Removes a frame from the frame tree. |child|, its children, and objects
132 // owned by their RenderFrameHostManagers are immediately deleted. The root 133 // owned by their RenderFrameHostManagers are immediately deleted. The root
133 // node cannot be removed this way. 134 // node cannot be removed this way.
134 void RemoveFrame(FrameTreeNode* child); 135 void RemoveFrame(FrameTreeNode* child);
135 136
136 // This method walks the entire frame tree and creates a RenderFrameProxyHost 137 // This method walks the entire frame tree and creates a RenderFrameProxyHost
137 // for the given |site_instance| in each node except the |source| one -- 138 // for the given |site_instance| in each node except the |source| one --
138 // the source will have a RenderFrameHost. |source| may be null if there is 139 // the source will have a RenderFrameHost. |source| may be null if there is
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 247
247 // Overall load progress. 248 // Overall load progress.
248 double load_progress_; 249 double load_progress_;
249 250
250 DISALLOW_COPY_AND_ASSIGN(FrameTree); 251 DISALLOW_COPY_AND_ASSIGN(FrameTree);
251 }; 252 };
252 253
253 } // namespace content 254 } // namespace content
254 255
255 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ 256 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_
OLDNEW
« no previous file with comments | « components/printing/renderer/print_web_view_helper.cc ('k') | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698