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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 bool has_committed_real_load() const { | 131 bool has_committed_real_load() const { |
132 return has_committed_real_load_; | 132 return has_committed_real_load_; |
133 } | 133 } |
134 | 134 |
135 // Returns the origin of the last committed page in this frame. | 135 // Returns the origin of the last committed page in this frame. |
136 const url::Origin& current_origin() const { | 136 const url::Origin& current_origin() const { |
137 return replication_state_.origin; | 137 return replication_state_.origin; |
138 } | 138 } |
139 | 139 |
140 // Set the current origin and notify proxies about the update. | 140 // Set the current origin and notify proxies about the update. |
141 void SetCurrentOrigin(const url::Origin& origin); | 141 void SetCurrentOrigin(const url::Origin& origin, |
| 142 bool is_potentially_trustworthy_unique_origin); |
142 | 143 |
143 // Set the current name and notify proxies about the update. | 144 // Set the current name and notify proxies about the update. |
144 void SetFrameName(const std::string& name, const std::string& unique_name); | 145 void SetFrameName(const std::string& name, const std::string& unique_name); |
145 | 146 |
146 // Sets the current enforcement of strict mixed content checking and | 147 // Sets the current enforcement of strict mixed content checking and |
147 // notifies proxies about the update. | 148 // notifies proxies about the update. |
148 void SetEnforceStrictMixedContentChecking(bool should_enforce); | 149 void SetEnforceStrictMixedContentChecking(bool should_enforce); |
149 | 150 |
150 // Returns the currently active sandbox flags for this frame. This includes | 151 // Returns the currently active sandbox flags for this frame. This includes |
151 // flags inherited from parent frames and the currently active flags from the | 152 // flags inherited from parent frames and the currently active flags from the |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 base::ObserverList<Observer> observers_; | 349 base::ObserverList<Observer> observers_; |
349 | 350 |
350 base::TimeTicks last_focus_time_; | 351 base::TimeTicks last_focus_time_; |
351 | 352 |
352 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 353 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
353 }; | 354 }; |
354 | 355 |
355 } // namespace content | 356 } // namespace content |
356 | 357 |
357 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 358 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
OLD | NEW |