| 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_LINK_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_LINK_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_LINK_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_LINK_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 19 matching lines...) Expand all Loading... |
| 30 // closed now or false if it should remain until the user explicitly closes | 30 // closed now or false if it should remain until the user explicitly closes |
| 31 // it. | 31 // it. |
| 32 virtual bool LinkClicked(WindowOpenDisposition disposition); | 32 virtual bool LinkClicked(WindowOpenDisposition disposition); |
| 33 | 33 |
| 34 protected: | 34 protected: |
| 35 explicit LinkInfoBarDelegate(TabContents* contents); | 35 explicit LinkInfoBarDelegate(TabContents* contents); |
| 36 virtual ~LinkInfoBarDelegate(); | 36 virtual ~LinkInfoBarDelegate(); |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 // InfoBarDelegate: | 39 // InfoBarDelegate: |
| 40 virtual InfoBar* CreateInfoBar() OVERRIDE; | 40 virtual InfoBar* CreateInfoBar(TabContents* owner) OVERRIDE; |
| 41 virtual LinkInfoBarDelegate* AsLinkInfoBarDelegate() OVERRIDE; | 41 virtual LinkInfoBarDelegate* AsLinkInfoBarDelegate() OVERRIDE; |
| 42 | 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(LinkInfoBarDelegate); | 43 DISALLOW_COPY_AND_ASSIGN(LinkInfoBarDelegate); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 #endif // CHROME_BROWSER_TAB_CONTENTS_LINK_INFOBAR_DELEGATE_H_ | 46 #endif // CHROME_BROWSER_TAB_CONTENTS_LINK_INFOBAR_DELEGATE_H_ |
| OLD | NEW |