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

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

Issue 1635873003: Replicating WebFrame::uniqueName across renderers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dump-render-tree3
Patch Set: Rebasing... Created 4 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 unified diff | Download patch
« no previous file with comments | « content/browser/frame_host/frame_tree.cc ('k') | content/browser/frame_host/frame_tree_node.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_NODE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Callers are are expected to initialize sandbox flags separately after 54 // Callers are are expected to initialize sandbox flags separately after
55 // calling the constructor. 55 // calling the constructor.
56 FrameTreeNode(FrameTree* frame_tree, 56 FrameTreeNode(FrameTree* frame_tree,
57 Navigator* navigator, 57 Navigator* navigator,
58 RenderFrameHostDelegate* render_frame_delegate, 58 RenderFrameHostDelegate* render_frame_delegate,
59 RenderViewHostDelegate* render_view_delegate, 59 RenderViewHostDelegate* render_view_delegate,
60 RenderWidgetHostDelegate* render_widget_delegate, 60 RenderWidgetHostDelegate* render_widget_delegate,
61 RenderFrameHostManager::Delegate* manager_delegate, 61 RenderFrameHostManager::Delegate* manager_delegate,
62 blink::WebTreeScopeType scope, 62 blink::WebTreeScopeType scope,
63 const std::string& name, 63 const std::string& name,
64 const std::string& unique_name,
64 const blink::WebFrameOwnerProperties& frame_owner_properties); 65 const blink::WebFrameOwnerProperties& frame_owner_properties);
65 66
66 ~FrameTreeNode(); 67 ~FrameTreeNode();
67 68
68 void AddObserver(Observer* observer); 69 void AddObserver(Observer* observer);
69 void RemoveObserver(Observer* observer); 70 void RemoveObserver(Observer* observer);
70 71
71 bool IsMainFrame() const; 72 bool IsMainFrame() const;
72 73
73 FrameTreeNode* AddChild(scoped_ptr<FrameTreeNode> child, 74 FrameTreeNode* AddChild(scoped_ptr<FrameTreeNode> child,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 134
134 // Returns the origin of the last committed page in this frame. 135 // Returns the origin of the last committed page in this frame.
135 const url::Origin& current_origin() const { 136 const url::Origin& current_origin() const {
136 return replication_state_.origin; 137 return replication_state_.origin;
137 } 138 }
138 139
139 // Set the current origin and notify proxies about the update. 140 // Set the current origin and notify proxies about the update.
140 void SetCurrentOrigin(const url::Origin& origin); 141 void SetCurrentOrigin(const url::Origin& origin);
141 142
142 // Set the current name and notify proxies about the update. 143 // Set the current name and notify proxies about the update.
143 void SetFrameName(const std::string& name); 144 void SetFrameName(const std::string& name, const std::string& unique_name);
144 145
145 // Sets the current enforcement of strict mixed content checking and 146 // Sets the current enforcement of strict mixed content checking and
146 // notifies proxies about the update. 147 // notifies proxies about the update.
147 void SetEnforceStrictMixedContentChecking(bool should_enforce); 148 void SetEnforceStrictMixedContentChecking(bool should_enforce);
148 149
149 // Returns the currently active sandbox flags for this frame. This includes 150 // Returns the currently active sandbox flags for this frame. This includes
150 // flags inherited from parent frames and the currently active flags from the 151 // flags inherited from parent frames and the currently active flags from the
151 // <iframe> element hosting this frame. This does not include flags that 152 // <iframe> element hosting this frame. This does not include flags that
152 // have been updated in an <iframe> element but have not taken effect yet; 153 // have been updated in an <iframe> element but have not taken effect yet;
153 // use pending_sandbox_flags() for those. 154 // use pending_sandbox_flags() for those.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 base::ObserverList<Observer> observers_; 351 base::ObserverList<Observer> observers_;
351 352
352 base::TimeTicks last_focus_time_; 353 base::TimeTicks last_focus_time_;
353 354
354 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); 355 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode);
355 }; 356 };
356 357
357 } // namespace content 358 } // namespace content
358 359
359 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 360 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/frame_tree.cc ('k') | content/browser/frame_host/frame_tree_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698