OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |