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