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

Unified Diff: chrome/browser/tab_contents/tab_contents.h

Issue 5610005: Makes instant run before unload listeners. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: Better comments Created 10 years 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: chrome/browser/tab_contents/tab_contents.h
diff --git a/chrome/browser/tab_contents/tab_contents.h b/chrome/browser/tab_contents/tab_contents.h
index e93ddeb7e68fdd229114afd2d0a6c617c2e8e834..3ac7aeecce05a517856ebadec5dd2d7502169b43 100644
--- a/chrome/browser/tab_contents/tab_contents.h
+++ b/chrome/browser/tab_contents/tab_contents.h
@@ -345,6 +345,11 @@ class TabContents : public PageNavigator,
virtual void ShowContents();
virtual void HideContents();
+ // Returns true if the before unload listener needs to be fired. The value of
+ // this changes over time. For example, if true and the before unload listener
+ // is executed and allows the user to exit, then this returns false.
+ bool NeedToFireBeforeUnload();
+
#ifdef UNIT_TEST
// Expose the render manager for testing.
RenderViewHostManager* render_manager() { return &render_manager_; }

Powered by Google App Engine
This is Rietveld 408576698