Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 1564963002: [on hold] Remove dependency on RenderViewHost from LoadState notifications Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make LoadInfo CONTENT_EXPORT for tests Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 bool render_view_ready_on_process_launch_; 400 bool render_view_ready_on_process_launch_;
407 401
408 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; 402 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_;
409 403
410 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 404 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
411 }; 405 };
412 406
413 } // namespace content 407 } // namespace content
414 408
415 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 409 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698