| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 HungRendererInfoBarDelegate* InfoBarDelegate::AsHungRendererInfoBarDelegate() { | 84 HungRendererInfoBarDelegate* InfoBarDelegate::AsHungRendererInfoBarDelegate() { |
| 85 return nullptr; | 85 return nullptr; |
| 86 } | 86 } |
| 87 | 87 |
| 88 InsecureContentInfoBarDelegate* | 88 InsecureContentInfoBarDelegate* |
| 89 InfoBarDelegate::AsInsecureContentInfoBarDelegate() { | 89 InfoBarDelegate::AsInsecureContentInfoBarDelegate() { |
| 90 return nullptr; | 90 return nullptr; |
| 91 } | 91 } |
| 92 | 92 |
| 93 MediaStreamInfoBarDelegate* InfoBarDelegate::AsMediaStreamInfoBarDelegate() { | |
| 94 return nullptr; | |
| 95 } | |
| 96 | |
| 97 NativeAppInfoBarDelegate* InfoBarDelegate::AsNativeAppInfoBarDelegate() { | 93 NativeAppInfoBarDelegate* InfoBarDelegate::AsNativeAppInfoBarDelegate() { |
| 98 return nullptr; | 94 return nullptr; |
| 99 } | 95 } |
| 100 | 96 |
| 101 PermissionInfobarDelegate* InfoBarDelegate::AsPermissionInfobarDelegate() { | 97 PermissionInfobarDelegate* InfoBarDelegate::AsPermissionInfobarDelegate() { |
| 102 return nullptr; | 98 return nullptr; |
| 103 } | 99 } |
| 104 | 100 |
| 105 PopupBlockedInfoBarDelegate* InfoBarDelegate::AsPopupBlockedInfoBarDelegate() { | 101 PopupBlockedInfoBarDelegate* InfoBarDelegate::AsPopupBlockedInfoBarDelegate() { |
| 106 return nullptr; | 102 return nullptr; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 124 ThreeDAPIInfoBarDelegate* InfoBarDelegate::AsThreeDAPIInfoBarDelegate() { | 120 ThreeDAPIInfoBarDelegate* InfoBarDelegate::AsThreeDAPIInfoBarDelegate() { |
| 125 return nullptr; | 121 return nullptr; |
| 126 } | 122 } |
| 127 | 123 |
| 128 translate::TranslateInfoBarDelegate* | 124 translate::TranslateInfoBarDelegate* |
| 129 InfoBarDelegate::AsTranslateInfoBarDelegate() { | 125 InfoBarDelegate::AsTranslateInfoBarDelegate() { |
| 130 return nullptr; | 126 return nullptr; |
| 131 } | 127 } |
| 132 | 128 |
| 133 #if defined(OS_ANDROID) | 129 #if defined(OS_ANDROID) |
| 130 MediaStreamInfoBarDelegateAndroid* |
| 131 InfoBarDelegate::AsMediaStreamInfoBarDelegateAndroid() { |
| 132 return nullptr; |
| 133 } |
| 134 |
| 134 MediaThrottleInfoBarDelegate* | 135 MediaThrottleInfoBarDelegate* |
| 135 InfoBarDelegate::AsMediaThrottleInfoBarDelegate() { | 136 InfoBarDelegate::AsMediaThrottleInfoBarDelegate() { |
| 136 return nullptr; | 137 return nullptr; |
| 137 } | 138 } |
| 138 #endif | 139 #endif |
| 139 | 140 |
| 140 InfoBarDelegate::InfoBarDelegate() : nav_entry_id_(0) { | 141 InfoBarDelegate::InfoBarDelegate() : nav_entry_id_(0) { |
| 141 } | 142 } |
| 142 | 143 |
| 143 } // namespace infobars | 144 } // namespace infobars |
| OLD | NEW |