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

Unified Diff: content/renderer/render_frame_impl.h

Issue 857213003: Refactor sudden termination (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 3decd78c85acd9f27ffa516f27d04656ea172c0a..0c592618e6cf34f8fdb3e94ad40ef12e415ed2b8 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -510,6 +510,9 @@ class CONTENT_EXPORT RenderFrameImpl
virtual void didChangeManifest(blink::WebLocalFrame*);
virtual bool enterFullscreen();
virtual bool exitFullscreen();
+ void suddenTerminationDisablerChanged(
+ int variation,
+ blink::WebFrameClient::SuddenTerminationDisablerType type) override;
// WebMediaPlayerDelegate implementation:
void DidPlay(blink::WebMediaPlayer* player) override;
@@ -846,6 +849,11 @@ class CONTENT_EXPORT RenderFrameImpl
// AccessibilityModeOff.
RendererAccessibility* renderer_accessibility_;
+ // Used to track disablers of sudden termination. A change of presence of any
+ // of those elements should be transmitted to the browser.
+ int beforeunload_handlers_;
+ int unload_handlers_;
+
#if defined(OS_MACOSX) || defined(OS_ANDROID)
// The external popup for the currently showing select popup.
scoped_ptr<ExternalPopupMenu> external_popup_menu_;

Powered by Google App Engine
This is Rietveld 408576698