[Cleanup] Remove a bit of dead code.
[chromium-blink-merge.git] / mandoline / tab / frame_tree.h
blob16d3591729056a29fbab3907f84e371573366743
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MANDOLINE_TAB_FRAME_TREE_H_
6 #define MANDOLINE_TAB_FRAME_TREE_H_
8 #include "mandoline/tab/frame.h"
10 namespace mandoline {
12 // FrameTree manages the set of Frames that comprise a single url. FrameTree
13 // owns the root Frame and each Frames owns its children. Frames are
14 // automatically deleted and removed from the tree if the corresponding view is
15 // deleted. This happens if the creator of the view deletes it (say an iframe is
16 // destroyed).
17 class FrameTree {
18 public:
19 // |view| is the view to do the initial embedding in. It is assumed |view|
20 // outlives FrameTree.
21 explicit FrameTree(mojo::View* view);
22 ~FrameTree();
24 Frame* root() { return &root_; }
26 private:
27 mojo::View* view_;
29 Frame root_;
31 DISALLOW_COPY_AND_ASSIGN(FrameTree);
34 } // namespace mandoline
36 #endif // MANDOLINE_TAB_FRAME_TREE_H_