| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } | 90 } |
| 91 | 91 |
| 92 void set_current_origin(const url::Origin& origin) { | 92 void set_current_origin(const url::Origin& origin) { |
| 93 replication_state_.origin = origin; | 93 replication_state_.origin = origin; |
| 94 } | 94 } |
| 95 | 95 |
| 96 void set_sandbox_flags(SandboxFlags sandbox_flags) { | 96 void set_sandbox_flags(SandboxFlags sandbox_flags) { |
| 97 replication_state_.sandbox_flags = sandbox_flags; | 97 replication_state_.sandbox_flags = sandbox_flags; |
| 98 } | 98 } |
| 99 | 99 |
| 100 bool HasSameOrigin(const FrameTreeNode& node) const { |
| 101 return replication_state_.origin.IsSameAs(node.replication_state_.origin); |
| 102 } |
| 103 |
| 100 const FrameReplicationState& current_replication_state() const { | 104 const FrameReplicationState& current_replication_state() const { |
| 101 return replication_state_; | 105 return replication_state_; |
| 102 } | 106 } |
| 103 | 107 |
| 104 void set_is_loading(bool is_loading) { | 108 void set_is_loading(bool is_loading) { |
| 105 is_loading_ = is_loading; | 109 is_loading_ = is_loading; |
| 106 } | 110 } |
| 107 bool is_loading() const { | 111 bool is_loading() const { |
| 108 return is_loading_; | 112 return is_loading_; |
| 109 } | 113 } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // to the FrameTreeNode, it is better to ask it about the loading status than | 168 // to the FrameTreeNode, it is better to ask it about the loading status than |
| 165 // RenderFrameHost or using a counter to balance the events out. | 169 // RenderFrameHost or using a counter to balance the events out. |
| 166 bool is_loading_; | 170 bool is_loading_; |
| 167 | 171 |
| 168 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 172 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
| 169 }; | 173 }; |
| 170 | 174 |
| 171 } // namespace content | 175 } // namespace content |
| 172 | 176 |
| 173 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 177 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
| OLD | NEW |