| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // it. | 53 // it. |
| 54 // Will only be called if GetLinkText() returns non-empty string. | 54 // Will only be called if GetLinkText() returns non-empty string. |
| 55 virtual bool LinkClicked(WindowOpenDisposition disposition); | 55 virtual bool LinkClicked(WindowOpenDisposition disposition); |
| 56 | 56 |
| 57 protected: | 57 protected: |
| 58 explicit ConfirmInfoBarDelegate(TabContents* contents); | 58 explicit ConfirmInfoBarDelegate(TabContents* contents); |
| 59 virtual ~ConfirmInfoBarDelegate(); | 59 virtual ~ConfirmInfoBarDelegate(); |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 // InfoBarDelegate: | 62 // InfoBarDelegate: |
| 63 virtual InfoBar* CreateInfoBar() OVERRIDE; | 63 virtual InfoBar* CreateInfoBar(TabContents* owner) OVERRIDE; |
| 64 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE; | 64 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE; |
| 65 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate() OVERRIDE; | 65 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate() OVERRIDE; |
| 66 | 66 |
| 67 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBarDelegate); | 67 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBarDelegate); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 #endif // CHROME_BROWSER_TAB_CONTENTS_CONFIRM_INFOBAR_DELEGATE_H_ | 70 #endif // CHROME_BROWSER_TAB_CONTENTS_CONFIRM_INFOBAR_DELEGATE_H_ |
| OLD | NEW |