| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_CONFIRM_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_CONFIRM_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_CONFIRM_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_CONFIRM_INFOBAR_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // the link was clicked). This function returns true if the InfoBar should be | 52 // the link was clicked). This function returns true if the InfoBar should be |
| 53 // closed now or false if it should remain until the user explicitly closes | 53 // closed now or false if it should remain until the user explicitly closes |
| 54 // it. | 54 // it. |
| 55 // Will only be called if GetLinkText() returns non-empty string. | 55 // Will only be called if GetLinkText() returns non-empty string. |
| 56 virtual bool LinkClicked(WindowOpenDisposition disposition); | 56 virtual bool LinkClicked(WindowOpenDisposition disposition); |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 explicit ConfirmInfoBarDelegate(TabContents* contents); | 59 explicit ConfirmInfoBarDelegate(TabContents* contents); |
| 60 virtual ~ConfirmInfoBarDelegate(); | 60 virtual ~ConfirmInfoBarDelegate(); |
| 61 | 61 |
| 62 virtual bool ShouldExpire( | |
| 63 const content::LoadCommittedDetails& details) const OVERRIDE; | |
| 64 | |
| 65 private: | 62 private: |
| 66 // InfoBarDelegate: | 63 // InfoBarDelegate: |
| 67 virtual InfoBar* CreateInfoBar(TabContentsWrapper* owner) OVERRIDE; | 64 virtual InfoBar* CreateInfoBar(TabContentsWrapper* owner) OVERRIDE; |
| 68 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE; | 65 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE; |
| 69 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate() OVERRIDE; | 66 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate() OVERRIDE; |
| 70 | 67 |
| 71 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBarDelegate); | 68 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBarDelegate); |
| 72 }; | 69 }; |
| 73 | 70 |
| 74 #endif // CHROME_BROWSER_TAB_CONTENTS_CONFIRM_INFOBAR_DELEGATE_H_ | 71 #endif // CHROME_BROWSER_TAB_CONTENTS_CONFIRM_INFOBAR_DELEGATE_H_ |
| OLD | NEW |