OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 void ClosePage(); | 202 void ClosePage(); |
203 | 203 |
204 // Close the page ignoring whether it has unload events registers. | 204 // Close the page ignoring whether it has unload events registers. |
205 // This is called after the beforeunload and unload events have fired | 205 // This is called after the beforeunload and unload events have fired |
206 // and the user has agreed to continue with closing the page. | 206 // and the user has agreed to continue with closing the page. |
207 void ClosePageIgnoringUnloadEvents(); | 207 void ClosePageIgnoringUnloadEvents(); |
208 | 208 |
209 // Tells the renderer view to focus the first (last if reverse is true) node. | 209 // Tells the renderer view to focus the first (last if reverse is true) node. |
210 void SetInitialFocus(bool reverse); | 210 void SetInitialFocus(bool reverse); |
211 | 211 |
212 // Notifies the RenderViewHost that its load state changed. | |
213 void LoadStateChanged(const GURL& url, | |
214 const net::LoadStateWithParam& load_state, | |
215 uint64_t upload_position, | |
216 uint64_t upload_size); | |
217 | |
218 bool SuddenTerminationAllowed() const; | 212 bool SuddenTerminationAllowed() const; |
219 void set_sudden_termination_allowed(bool enabled) { | 213 void set_sudden_termination_allowed(bool enabled) { |
220 sudden_termination_allowed_ = enabled; | 214 sudden_termination_allowed_ = enabled; |
221 } | 215 } |
222 | 216 |
223 // Creates a new RenderView with the given route id. | 217 // Creates a new RenderView with the given route id. |
224 void CreateNewWindow(int32_t route_id, | 218 void CreateNewWindow(int32_t route_id, |
225 int32_t main_frame_route_id, | 219 int32_t main_frame_route_id, |
226 int32_t main_frame_widget_route_id, | 220 int32_t main_frame_widget_route_id, |
227 const ViewHostMsg_CreateWindow_Params& params, | 221 const ViewHostMsg_CreateWindow_Params& params, |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 bool render_view_ready_on_process_launch_; | 403 bool render_view_ready_on_process_launch_; |
410 | 404 |
411 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 405 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
412 | 406 |
413 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 407 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
414 }; | 408 }; |
415 | 409 |
416 } // namespace content | 410 } // namespace content |
417 | 411 |
418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 412 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |