Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1283)

Side by Side Diff: content/browser/frame_host/frame_tree_node.h

Issue 974723002: OOPIF: Replicate dynamic window.name updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_frame_name(const std::string& name) {
97 replication_state_.name = name;
98 }
99
96 void set_sandbox_flags(SandboxFlags sandbox_flags) { 100 void set_sandbox_flags(SandboxFlags sandbox_flags) {
97 replication_state_.sandbox_flags = sandbox_flags; 101 replication_state_.sandbox_flags = sandbox_flags;
98 } 102 }
99 103
100 bool HasSameOrigin(const FrameTreeNode& node) const { 104 bool HasSameOrigin(const FrameTreeNode& node) const {
101 return replication_state_.origin.IsSameAs(node.replication_state_.origin); 105 return replication_state_.origin.IsSameAs(node.replication_state_.origin);
102 } 106 }
103 107
104 const FrameReplicationState& current_replication_state() const { 108 const FrameReplicationState& current_replication_state() const {
105 return replication_state_; 109 return replication_state_;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // to the FrameTreeNode, it is better to ask it about the loading status than 170 // to the FrameTreeNode, it is better to ask it about the loading status than
167 // RenderFrameHost or using a counter to balance the events out. 171 // RenderFrameHost or using a counter to balance the events out.
168 bool is_loading_; 172 bool is_loading_;
169 173
170 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); 174 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode);
171 }; 175 };
172 176
173 } // namespace content 177 } // namespace content
174 178
175 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 179 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698