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_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 private: | 52 private: |
53 // IPC Message handlers. | 53 // IPC Message handlers. |
54 void OnDetach(int64 parent_frame_id, int64 frame_id); | 54 void OnDetach(int64 parent_frame_id, int64 frame_id); |
55 void OnDidStartProvisionalLoadForFrame(int64 frame_id, | 55 void OnDidStartProvisionalLoadForFrame(int64 frame_id, |
56 int64 parent_frame_id, | 56 int64 parent_frame_id, |
57 bool main_frame, | 57 bool main_frame, |
58 const GURL& url); | 58 const GURL& url); |
59 | 59 |
60 bool is_swapped_out() { return is_swapped_out_; } | 60 bool is_swapped_out() { return is_swapped_out_; } |
61 | 61 |
62 // TODO(nasko): This should be removed and replaced by RenderProcessHost. | 62 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via the |
63 RenderViewHostImpl* render_view_host_; // Not owned. | 63 // refcount on FrameTree. This allows each RenderFrameHostManager to just |
| 64 // care about RenderFrameHosts, while ensuring we have a RenderViewHost for |
| 65 // each RenderFrameHost. |
| 66 // TODO(creis): RenderViewHost will eventually go away and be replaced with |
| 67 // some form of page context. |
| 68 RenderViewHostImpl* render_view_host_; |
64 | 69 |
65 // Reference to the whole frame tree that this RenderFrameHost belongs too. | 70 // Reference to the whole frame tree that this RenderFrameHost belongs too. |
66 // Allows this RenderFrameHost to add and remove nodes in response to | 71 // Allows this RenderFrameHost to add and remove nodes in response to |
67 // messages from the renderer requesting DOM manipulation. | 72 // messages from the renderer requesting DOM manipulation. |
68 FrameTree* frame_tree_; | 73 FrameTree* frame_tree_; |
69 int routing_id_; | 74 int routing_id_; |
70 bool is_swapped_out_; | 75 bool is_swapped_out_; |
71 | 76 |
72 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 77 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
73 }; | 78 }; |
74 | 79 |
75 } // namespace content | 80 } // namespace content |
76 | 81 |
77 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 82 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |