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

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: Feedback. Created 4 years, 11 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 91
92 int frame_tree_node_id() const { 92 int frame_tree_node_id() const {
93 return frame_tree_node_id_; 93 return frame_tree_node_id_;
94 } 94 }
95 95
96 const std::string& frame_name() const { 96 const std::string& frame_name() const {
97 return replication_state_.name; 97 return replication_state_.name;
98 } 98 }
99 99
100 const url::Origin& frame_origin() const { return replication_state_.origin; }
101
100 size_t child_count() const { 102 size_t child_count() const {
101 return children_.size(); 103 return children_.size();
102 } 104 }
103 105
104 FrameTreeNode* parent() const { return parent_; } 106 FrameTreeNode* parent() const { return parent_; }
105 107
106 FrameTreeNode* opener() const { return opener_; } 108 FrameTreeNode* opener() const { return opener_; }
107 109
108 // Assigns a new opener for this node and, if |opener| is non-null, registers 110 // Assigns a new opener for this node and, if |opener| is non-null, registers
109 // an observer that will clear this node's opener if |opener| is ever 111 // an observer that will clear this node's opener if |opener| is ever
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 base::ObserverList<Observer> observers_; 325 base::ObserverList<Observer> observers_;
324 326
325 base::TimeTicks last_focus_time_; 327 base::TimeTicks last_focus_time_;
326 328
327 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); 329 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode);
328 }; 330 };
329 331
330 } // namespace content 332 } // namespace content
331 333
332 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 334 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698