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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 friend class TestRenderViewHost; | 95 friend class TestRenderViewHost; |
96 | 96 |
97 // IPC Message handlers. | 97 // IPC Message handlers. |
98 void OnDetach(int64 parent_frame_id, int64 frame_id); | 98 void OnDetach(int64 parent_frame_id, int64 frame_id); |
99 void OnDidStartProvisionalLoadForFrame(int64 frame_id, | 99 void OnDidStartProvisionalLoadForFrame(int64 frame_id, |
100 int64 parent_frame_id, | 100 int64 parent_frame_id, |
101 bool main_frame, | 101 bool main_frame, |
102 const GURL& url); | 102 const GURL& url); |
103 void OnDidFailProvisionalLoadWithError( | 103 void OnDidFailProvisionalLoadWithError( |
104 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params); | 104 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params); |
| 105 void OnDidRedirectProvisionalLoad(int32 page_id, |
| 106 const GURL& source_url, |
| 107 const GURL& target_url); |
105 void OnSwapOutACK(); | 108 void OnSwapOutACK(); |
106 | 109 |
107 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 110 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
108 // refcount that calls Shutdown when it reaches zero. This allows each | 111 // refcount that calls Shutdown when it reaches zero. This allows each |
109 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring | 112 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring |
110 // we have a RenderViewHost for each RenderFrameHost. | 113 // we have a RenderViewHost for each RenderFrameHost. |
111 // TODO(creis): RenderViewHost will eventually go away and be replaced with | 114 // TODO(creis): RenderViewHost will eventually go away and be replaced with |
112 // some form of page context. | 115 // some form of page context. |
113 RenderViewHostImpl* render_view_host_; | 116 RenderViewHostImpl* render_view_host_; |
114 | 117 |
(...skipping 21 matching lines...) Expand all Loading... |
136 | 139 |
137 int routing_id_; | 140 int routing_id_; |
138 bool is_swapped_out_; | 141 bool is_swapped_out_; |
139 | 142 |
140 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 143 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
141 }; | 144 }; |
142 | 145 |
143 } // namespace content | 146 } // namespace content |
144 | 147 |
145 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 148 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |