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

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

Issue 2738943002: Move beforeunload hang timer duties to its own timer. (Closed)
Patch Set: rebase Created 3 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_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index c60dc6201ba8f2343e85d25b4568ee82d2df07ec..923af0afa90181ef6ef4df43a52db7efe8e8e4cf 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -547,14 +547,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
uint32_t offset,
const gfx::Range& range);
- // Expose increment/decrement of the in-flight event count, so
- // RenderViewHostImpl can account for in-flight beforeunload/unload events.
- int increment_in_flight_event_count() { return ++in_flight_event_count_; }
- int decrement_in_flight_event_count() {
- DCHECK_GT(in_flight_event_count_, 0);
- return --in_flight_event_count_;
- }
-
size_t in_flight_event_count() const { return in_flight_event_count_; }
blink::WebInputEvent::Type hang_monitor_event_type() const {
return hang_monitor_event_type_;

Powered by Google App Engine
This is Rietveld 408576698