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 set_sandbox_flags(SandboxFlags sandbox_flags) { |
| 97 replication_state_.sandbox_flags = sandbox_flags; |
| 98 } |
| 99 |
96 const FrameReplicationState& current_replication_state() const { | 100 const FrameReplicationState& current_replication_state() const { |
97 return replication_state_; | 101 return replication_state_; |
98 } | 102 } |
99 | 103 |
100 RenderFrameHostImpl* current_frame_host() const { | 104 RenderFrameHostImpl* current_frame_host() const { |
101 return render_manager_.current_frame_host(); | 105 return render_manager_.current_frame_host(); |
102 } | 106 } |
103 | 107 |
104 private: | 108 private: |
105 void set_parent(FrameTreeNode* parent) { parent_ = parent; } | 109 void set_parent(FrameTreeNode* parent) { parent_ = parent; } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // Track information that needs to be replicated to processes that have | 148 // Track information that needs to be replicated to processes that have |
145 // proxies for this frame. | 149 // proxies for this frame. |
146 FrameReplicationState replication_state_; | 150 FrameReplicationState replication_state_; |
147 | 151 |
148 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 152 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
149 }; | 153 }; |
150 | 154 |
151 } // namespace content | 155 } // namespace content |
152 | 156 |
153 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 157 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
OLD | NEW |