| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/infobars/core/infobar_delegate.h" | 5 #include "components/infobars/core/infobar_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "components/infobars/core/infobar.h" | 9 #include "components/infobars/core/infobar.h" |
| 10 #include "components/infobars/core/infobar_manager.h" | 10 #include "components/infobars/core/infobar_manager.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 ThemeInstalledInfoBarDelegate* | 124 ThemeInstalledInfoBarDelegate* |
| 125 InfoBarDelegate::AsThemePreviewInfobarDelegate() { | 125 InfoBarDelegate::AsThemePreviewInfobarDelegate() { |
| 126 return nullptr; | 126 return nullptr; |
| 127 } | 127 } |
| 128 | 128 |
| 129 ThreeDAPIInfoBarDelegate* InfoBarDelegate::AsThreeDAPIInfoBarDelegate() { | 129 ThreeDAPIInfoBarDelegate* InfoBarDelegate::AsThreeDAPIInfoBarDelegate() { |
| 130 return nullptr; | 130 return nullptr; |
| 131 } | 131 } |
| 132 | 132 |
| 133 translate::TranslateInfoBarDelegate* | 133 translate::TranslateInfoBarDelegate* |
| 134 InfoBarDelegate::AsTranslateInfoBarDelegate() { | 134 InfoBarDelegate::AsTranslateInfoBarDelegate() { |
| 135 return nullptr; | 135 return nullptr; |
| 136 } | 136 } |
| 137 | 137 |
| 138 #if defined(OS_ANDROID) |
| 139 MediaThrottleInfoBarDelegate* |
| 140 InfoBarDelegate::AsMediaThrottleInfoBarDelegate() { |
| 141 return nullptr; |
| 142 } |
| 143 #endif |
| 144 |
| 138 InfoBarDelegate::InfoBarDelegate() : nav_entry_id_(0) { | 145 InfoBarDelegate::InfoBarDelegate() : nav_entry_id_(0) { |
| 139 } | 146 } |
| 140 | 147 |
| 141 } // namespace infobars | 148 } // namespace infobars |
| OLD | NEW |