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

Unified Diff: content/renderer/render_widget.h

Issue 2410153005: Fix RenderView reuse issues when canceling a pending RenderFrameHost. (Closed)
Patch Set: Nits Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index bcbdffbd953eb31fe8d7caec5a59ae82035b6791..597bb79c6fdceaf79cd7e115e6b2d3e563142208 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -164,7 +164,6 @@ class CONTENT_EXPORT RenderWidget
bool is_hidden() const { return is_hidden_; }
// Temporary for debugging purposes...
bool closing() const { return closing_; }
- bool is_swapped_out() { return is_swapped_out_; }
bool has_host_context_menu_location() {
return has_host_context_menu_location_;
}
@@ -182,6 +181,14 @@ class CONTENT_EXPORT RenderWidget
// ScreenInfo exposed so it can be passed to subframe RenderWidgets.
ScreenInfo screen_info() const { return screen_info_; }
+ // Sets whether this RenderWidget has been swapped out to be displayed by
+ // a RenderWidget in a different process. If so, no new IPC messages will be
+ // sent (only ACKs) and the process is free to exit when there are no other
+ // active RenderWidgets.
+ void SetSwappedOut(bool is_swapped_out);
nasko 2016/10/13 21:26:28 You should reorder the .cc file to match the heade
alexmos 2016/10/14 17:07:38 Done. (Though it's not perfect, as many other nea
+
+ bool is_swapped_out() { return is_swapped_out_; }
nasko 2016/10/13 21:26:28 rant: Ah! I can't wait to kill this boolean. It do
alexmos 2016/10/14 17:07:38 Acknowledged.
+
// Manage edit commands to be used for the next keyboard event.
const EditCommands& edit_commands() const { return edit_commands_; }
void SetEditCommandForNextKeyEvent(const std::string& name,
@@ -439,12 +446,6 @@ class CONTENT_EXPORT RenderWidget
blink::WebWidget* web_widget,
IPC::SyncMessage* create_widget_message);
- // Sets whether this RenderWidget has been swapped out to be displayed by
- // a RenderWidget in a different process. If so, no new IPC messages will be
- // sent (only ACKs) and the process is free to exit when there are no other
- // active RenderWidgets.
- void SetSwappedOut(bool is_swapped_out);
-
// Allows the process to exit once the unload handler has finished, if there
// are no other active RenderWidgets.
void WasSwappedOut();
« content/browser/site_per_process_browsertest.cc ('K') | « content/renderer/render_frame_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698