| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // Called when the user closed the modal dialogue for BeforeUnload and | 265 // Called when the user closed the modal dialogue for BeforeUnload and |
| 266 // cancelled the navigation. This should stop any load happening in the | 266 // cancelled the navigation. This should stop any load happening in the |
| 267 // FrameTreeNode. | 267 // FrameTreeNode. |
| 268 void BeforeUnloadCanceled(); | 268 void BeforeUnloadCanceled(); |
| 269 | 269 |
| 270 private: | 270 private: |
| 271 class OpenerDestroyedObserver; | 271 class OpenerDestroyedObserver; |
| 272 | 272 |
| 273 void set_parent(FrameTreeNode* parent) { parent_ = parent; } | 273 void set_parent(FrameTreeNode* parent) { parent_ = parent; } |
| 274 | 274 |
| 275 void TraceSnapshot() const; |
| 276 |
| 275 // The next available browser-global FrameTreeNode ID. | 277 // The next available browser-global FrameTreeNode ID. |
| 276 static int next_frame_tree_node_id_; | 278 static int next_frame_tree_node_id_; |
| 277 | 279 |
| 278 // The FrameTree that owns us. | 280 // The FrameTree that owns us. |
| 279 FrameTree* frame_tree_; // not owned. | 281 FrameTree* frame_tree_; // not owned. |
| 280 | 282 |
| 281 // The Navigator object responsible for managing navigations at this node | 283 // The Navigator object responsible for managing navigations at this node |
| 282 // of the frame tree. | 284 // of the frame tree. |
| 283 scoped_refptr<Navigator> navigator_; | 285 scoped_refptr<Navigator> navigator_; |
| 284 | 286 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 base::ObserverList<Observer> observers_; | 348 base::ObserverList<Observer> observers_; |
| 347 | 349 |
| 348 base::TimeTicks last_focus_time_; | 350 base::TimeTicks last_focus_time_; |
| 349 | 351 |
| 350 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 352 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
| 351 }; | 353 }; |
| 352 | 354 |
| 353 } // namespace content | 355 } // namespace content |
| 354 | 356 |
| 355 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 357 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
| OLD | NEW |