Index: chrome/browser/tab_contents/infobar_delegate.h |
diff --git a/chrome/browser/tab_contents/infobar_delegate.h b/chrome/browser/tab_contents/infobar_delegate.h |
index ea56a1e3cd55b9ccd2305d15b02b89ee2a8fe887..c26c747cb36d5a2619ef1bfa1b82c55c794ce6e9 100644 |
--- a/chrome/browser/tab_contents/infobar_delegate.h |
+++ b/chrome/browser/tab_contents/infobar_delegate.h |
@@ -57,6 +57,10 @@ class InfoBarDelegate { |
virtual bool ShouldExpire( |
const NavigationController::LoadCommittedDetails& details) const; |
+ // Returning true indicates that this InfoBar should not be closed if the |
+ // navigation is programmatic and not user-intiated. |
+ virtual bool DoNotCloseOnProgrammaticNavigation() const; |
+ |
// Called when the user clicks on the close button to dismiss the infobar. |
virtual void InfoBarDismissed(); |
@@ -91,11 +95,11 @@ class InfoBarDelegate { |
// be expired from |contents_|. |
void StoreActiveEntryUniqueID(TabContents* contents); |
- private: |
// The unique id of the active NavigationEntry of the TabContents that we were |
// opened for. Used to help expire on navigations. |
int contents_unique_id_; |
+ private: |
DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); |
}; |