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

Unified Diff: chrome/browser/ui/tabs/tab_strip_model_delegate.h

Issue 23835007: DevTools: Do not close devtools if there are dirty files in workspace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revisiting naming & comments Created 7 years, 1 month 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/ui/tabs/tab_strip_model_delegate.h
diff --git a/chrome/browser/ui/tabs/tab_strip_model_delegate.h b/chrome/browser/ui/tabs/tab_strip_model_delegate.h
index cc2f7d2b47fbffd752a0fd5ce718e885dce4d8fd..3c22d5e8f4db8047669dc36d77baa5ca84427aa3 100644
--- a/chrome/browser/ui/tabs/tab_strip_model_delegate.h
+++ b/chrome/browser/ui/tabs/tab_strip_model_delegate.h
@@ -104,6 +104,11 @@ class TabStripModelDelegate {
virtual bool RunUnloadListenerBeforeClosing(
content::WebContents* contents) = 0;
+ // Returns true if we should run unload listeners before attempts
+ // to close |contents|.
+ virtual bool ShouldRunUnloadListenerBeforeClosing(
+ content::WebContents* contents) = 0;
+
// Returns the current tab restore type.
virtual RestoreTabType GetRestoreTabType() = 0;

Powered by Google App Engine
This is Rietveld 408576698