Chromium Code Reviews| 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 <memory> | 10 #include <memory> |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 131 // Sets the last committed URL for this frame and updates | 131 // Sets the last committed URL for this frame and updates |
| 132 // has_committed_real_load accordingly. | 132 // has_committed_real_load accordingly. |
| 133 void SetCurrentURL(const GURL& url); | 133 void SetCurrentURL(const GURL& url); |
| 134 | 134 |
| 135 // Returns true iff SetCurrentURL has been called with a non-blank URL. | 135 // Returns true iff SetCurrentURL has been called with a non-blank URL. |
| 136 bool has_committed_real_load() const { | 136 bool has_committed_real_load() const { |
| 137 return has_committed_real_load_; | 137 return has_committed_real_load_; |
| 138 } | 138 } |
| 139 | 139 |
| 140 // Returns the origin of the last committed page in this frame. | 140 // Returns the origin of the last committed page in this frame. |
| 141 // WARNING: To get the last committed origin for a particular | |
| 142 // RenderFrameHost, use RenderFrameHost::GetLastCommittedOrigin() instead, | |
| 143 // which will behave correctly even when the RenderFrameHost is not the | |
| 144 // current one for this frame (such as when it's pending deletion). | |
|
alexmos
2016/12/06 17:22:40
I'm not thrilled about storing the origin in two p
Charlie Reis
2016/12/08 19:51:47
Yeah, I see the dilemma. I'm ok with this at leas
| |
| 141 const url::Origin& current_origin() const { | 145 const url::Origin& current_origin() const { |
| 142 return replication_state_.origin; | 146 return replication_state_.origin; |
|
alexmos
2016/12/06 17:22:40
I tried putting a DCHECK here to see if any caller
Charlie Reis
2016/12/08 19:51:47
I agree that IsURLInPageNavigation needs to get th
| |
| 143 } | 147 } |
| 144 | 148 |
| 145 // Set the current origin and notify proxies about the update. | 149 // Set the current origin and notify proxies about the update. |
| 146 void SetCurrentOrigin(const url::Origin& origin, | 150 void SetCurrentOrigin(const url::Origin& origin, |
| 147 bool is_potentially_trustworthy_unique_origin); | 151 bool is_potentially_trustworthy_unique_origin); |
| 148 | 152 |
| 149 // Set the current name and notify proxies about the update. | 153 // Set the current name and notify proxies about the update. |
| 150 void SetFrameName(const std::string& name, const std::string& unique_name); | 154 void SetFrameName(const std::string& name, const std::string& unique_name); |
| 151 | 155 |
| 152 // Set the frame's feature policy from an HTTP header, clearing any existing | 156 // Set the frame's feature policy from an HTTP header, clearing any existing |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 378 // browser process activities to this node (when possible). It is unrelated | 382 // browser process activities to this node (when possible). It is unrelated |
| 379 // to the core logic of FrameTreeNode. | 383 // to the core logic of FrameTreeNode. |
| 380 FrameTreeNodeBlameContext blame_context_; | 384 FrameTreeNodeBlameContext blame_context_; |
| 381 | 385 |
| 382 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 386 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
| 383 }; | 387 }; |
| 384 | 388 |
| 385 } // namespace content | 389 } // namespace content |
| 386 | 390 |
| 387 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 391 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
| OLD | NEW |