| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 const url::Origin& current_origin() const { | 130 const url::Origin& current_origin() const { |
| 131 return replication_state_.origin; | 131 return replication_state_.origin; |
| 132 } | 132 } |
| 133 | 133 |
| 134 // Set the current origin and notify proxies about the update. | 134 // Set the current origin and notify proxies about the update. |
| 135 void SetCurrentOrigin(const url::Origin& origin); | 135 void SetCurrentOrigin(const url::Origin& origin); |
| 136 | 136 |
| 137 // Set the current name and notify proxies about the update. | 137 // Set the current name and notify proxies about the update. |
| 138 void SetFrameName(const std::string& name); | 138 void SetFrameName(const std::string& name); |
| 139 | 139 |
| 140 // Sets the current enforcement of strict mixed content checking and |
| 141 // notifies proxies about the update. |
| 142 void SetShouldEnforceStrictMixedContentChecking(bool should_enforce); |
| 143 |
| 140 blink::WebSandboxFlags effective_sandbox_flags() { | 144 blink::WebSandboxFlags effective_sandbox_flags() { |
| 141 return effective_sandbox_flags_; | 145 return effective_sandbox_flags_; |
| 142 } | 146 } |
| 143 | 147 |
| 144 void set_sandbox_flags(blink::WebSandboxFlags sandbox_flags) { | 148 void set_sandbox_flags(blink::WebSandboxFlags sandbox_flags) { |
| 145 replication_state_.sandbox_flags = sandbox_flags; | 149 replication_state_.sandbox_flags = sandbox_flags; |
| 146 } | 150 } |
| 147 | 151 |
| 148 // Transfer any pending sandbox flags into |effective_sandbox_flags_|, and | 152 // Transfer any pending sandbox flags into |effective_sandbox_flags_|, and |
| 149 // return true if the sandbox flags were changed. | 153 // return true if the sandbox flags were changed. |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 base::ObserverList<Observer> observers_; | 321 base::ObserverList<Observer> observers_; |
| 318 | 322 |
| 319 base::TimeTicks last_focus_time_; | 323 base::TimeTicks last_focus_time_; |
| 320 | 324 |
| 321 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 325 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
| 322 }; | 326 }; |
| 323 | 327 |
| 324 } // namespace content | 328 } // namespace content |
| 325 | 329 |
| 326 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 330 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
| OLD | NEW |