| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_INFOBARS_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 // Returns the type of the infobar. The type determines the appearance (such | 94 // Returns the type of the infobar. The type determines the appearance (such |
| 95 // as background color) of the infobar. | 95 // as background color) of the infobar. |
| 96 virtual Type GetInfoBarType() const; | 96 virtual Type GetInfoBarType() const; |
| 97 | 97 |
| 98 // Type-checking downcast routines: | 98 // Type-checking downcast routines: |
| 99 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); | 99 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); |
| 100 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); | 100 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); |
| 101 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); | 101 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); |
| 102 virtual LinkInfoBarDelegate* AsLinkInfoBarDelegate(); | 102 virtual LinkInfoBarDelegate* AsLinkInfoBarDelegate(); |
| 103 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfobarDelegate(); | 103 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); |
| 104 virtual RegisterProtocolHandlerInfoBarDelegate* | 104 virtual RegisterProtocolHandlerInfoBarDelegate* |
| 105 AsRegisterProtocolHandlerInfoBarDelegate(); | 105 AsRegisterProtocolHandlerInfoBarDelegate(); |
| 106 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); | 106 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); |
| 107 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); | 107 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); |
| 108 | 108 |
| 109 protected: | 109 protected: |
| 110 // If |contents| is non-NULL, its active entry's unique ID will be stored | 110 // If |contents| is non-NULL, its active entry's unique ID will be stored |
| 111 // using StoreActiveEntryUniqueID automatically. | 111 // using StoreActiveEntryUniqueID automatically. |
| 112 explicit InfoBarDelegate(InfoBarTabHelper* infobar_helper); | 112 explicit InfoBarDelegate(InfoBarTabHelper* infobar_helper); |
| 113 | 113 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 129 // opened for. Used to help expire on navigations. | 129 // opened for. Used to help expire on navigations. |
| 130 int contents_unique_id_; | 130 int contents_unique_id_; |
| 131 | 131 |
| 132 // TODO(pkasting): Remove. | 132 // TODO(pkasting): Remove. |
| 133 InfoBarTabHelper* owner_; | 133 InfoBarTabHelper* owner_; |
| 134 | 134 |
| 135 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); | 135 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_ | 138 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_ |
| OLD | NEW |