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

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

Issue 1411813003: Teach URLRequest about initiator checks for First-Party-Only cookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mmenke Created 5 years, 1 month 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 84
85 int frame_tree_node_id() const { 85 int frame_tree_node_id() const {
86 return frame_tree_node_id_; 86 return frame_tree_node_id_;
87 } 87 }
88 88
89 const std::string& frame_name() const { 89 const std::string& frame_name() const {
90 return replication_state_.name; 90 return replication_state_.name;
91 } 91 }
92 92
93 const url::Origin& frame_origin() const { return replication_state_.origin; }
94
93 size_t child_count() const { 95 size_t child_count() const {
94 return children_.size(); 96 return children_.size();
95 } 97 }
96 98
97 FrameTreeNode* parent() const { return parent_; } 99 FrameTreeNode* parent() const { return parent_; }
98 100
99 FrameTreeNode* opener() const { return opener_; } 101 FrameTreeNode* opener() const { return opener_; }
100 102
101 // Assigns a new opener for this node and, if |opener| is non-null, registers 103 // Assigns a new opener for this node and, if |opener| is non-null, registers
102 // an observer that will clear this node's opener if |opener| is ever 104 // an observer that will clear this node's opener if |opener| is ever
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 base::ObserverList<Observer> observers_; 290 base::ObserverList<Observer> observers_;
289 291
290 base::TimeTicks last_focus_time_; 292 base::TimeTicks last_focus_time_;
291 293
292 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); 294 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode);
293 }; 295 };
294 296
295 } // namespace content 297 } // namespace content
296 298
297 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 299 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698