| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 } | 86 } |
| 87 | 87 |
| 88 void set_current_url(const GURL& url) { | 88 void set_current_url(const GURL& url) { |
| 89 current_url_ = url; | 89 current_url_ = url; |
| 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 SetFrameName(const std::string& name); |
| 97 |
| 96 SandboxFlags effective_sandbox_flags() { return effective_sandbox_flags_; } | 98 SandboxFlags effective_sandbox_flags() { return effective_sandbox_flags_; } |
| 97 | 99 |
| 98 void set_sandbox_flags(SandboxFlags sandbox_flags) { | 100 void set_sandbox_flags(SandboxFlags sandbox_flags) { |
| 99 replication_state_.sandbox_flags = sandbox_flags; | 101 replication_state_.sandbox_flags = sandbox_flags; |
| 100 } | 102 } |
| 101 | 103 |
| 102 // Transfer any pending sandbox flags into |effective_sandbox_flags_|, and | 104 // Transfer any pending sandbox flags into |effective_sandbox_flags_|, and |
| 103 // return true if the sandbox flags were changed. | 105 // return true if the sandbox flags were changed. |
| 104 bool CommitPendingSandboxFlags(); | 106 bool CommitPendingSandboxFlags(); |
| 105 | 107 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // to the FrameTreeNode, it is better to ask it about the loading status than | 184 // to the FrameTreeNode, it is better to ask it about the loading status than |
| 183 // RenderFrameHost or using a counter to balance the events out. | 185 // RenderFrameHost or using a counter to balance the events out. |
| 184 bool is_loading_; | 186 bool is_loading_; |
| 185 | 187 |
| 186 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 188 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
| 187 }; | 189 }; |
| 188 | 190 |
| 189 } // namespace content | 191 } // namespace content |
| 190 | 192 |
| 191 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 193 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
| OLD | NEW |