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

Unified Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 1014623002: Revert "Refactor sudden termination" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + fixed compilation error Created 5 years, 9 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/browser/renderer_host/render_view_host_impl.h
diff --git a/content/browser/renderer_host/render_view_host_impl.h b/content/browser/renderer_host/render_view_host_impl.h
index 69d6f478d636a8f0f04c8d6a6ebc020c16023273..b15019b1e7e5c5a534cd8b45576c4adb48207f84 100644
--- a/content/browser/renderer_host/render_view_host_impl.h
+++ b/content/browser/renderer_host/render_view_host_impl.h
@@ -246,6 +246,11 @@ class CONTENT_EXPORT RenderViewHostImpl
uint64 upload_position,
uint64 upload_size);
+ bool SuddenTerminationAllowed() const;
+ void set_sudden_termination_allowed(bool enabled) {
+ sudden_termination_allowed_ = enabled;
+ }
+
// RenderWidgetHost public overrides.
void Init() override;
void Shutdown() override;
@@ -427,6 +432,9 @@ class CONTENT_EXPORT RenderViewHostImpl
// See http://crbug.com/418265.
bool is_waiting_for_close_ack_;
+ // True if the render view can be shut down suddenly.
+ bool sudden_termination_allowed_;
+
// The termination status of the last render view that terminated.
base::TerminationStatus render_view_termination_status_;
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698