| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 } | 45 } |
| 46 | 46 |
| 47 AutoLoginInfoBarDelegate* InfoBarDelegate::AsAutoLoginInfoBarDelegate() { | 47 AutoLoginInfoBarDelegate* InfoBarDelegate::AsAutoLoginInfoBarDelegate() { |
| 48 return NULL; | 48 return NULL; |
| 49 } | 49 } |
| 50 | 50 |
| 51 ConfirmInfoBarDelegate* InfoBarDelegate::AsConfirmInfoBarDelegate() { | 51 ConfirmInfoBarDelegate* InfoBarDelegate::AsConfirmInfoBarDelegate() { |
| 52 return NULL; | 52 return NULL; |
| 53 } | 53 } |
| 54 | 54 |
| 55 #if defined(OS_ANDROID) |
| 56 chrome::android::DownloadOverwriteInfoBarDelegate* |
| 57 InfoBarDelegate::AsDownloadOverwriteInfoBarDelegate() { |
| 58 return NULL; |
| 59 } |
| 60 #endif |
| 61 |
| 55 ExtensionInfoBarDelegate* InfoBarDelegate::AsExtensionInfoBarDelegate() { | 62 ExtensionInfoBarDelegate* InfoBarDelegate::AsExtensionInfoBarDelegate() { |
| 56 return NULL; | 63 return NULL; |
| 57 } | 64 } |
| 58 | 65 |
| 59 InsecureContentInfoBarDelegate* | 66 InsecureContentInfoBarDelegate* |
| 60 InfoBarDelegate::AsInsecureContentInfoBarDelegate() { | 67 InfoBarDelegate::AsInsecureContentInfoBarDelegate() { |
| 61 return NULL; | 68 return NULL; |
| 62 } | 69 } |
| 63 | 70 |
| 64 MediaStreamInfoBarDelegate* InfoBarDelegate::AsMediaStreamInfoBarDelegate() { | 71 MediaStreamInfoBarDelegate* InfoBarDelegate::AsMediaStreamInfoBarDelegate() { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } | 110 } |
| 104 | 111 |
| 105 bool InfoBarDelegate::ShouldExpireInternal( | 112 bool InfoBarDelegate::ShouldExpireInternal( |
| 106 const NavigationDetails& details) const { | 113 const NavigationDetails& details) const { |
| 107 // NOTE: If you change this, be sure to check and adjust the behavior of | 114 // NOTE: If you change this, be sure to check and adjust the behavior of |
| 108 // anyone who overrides this as necessary! | 115 // anyone who overrides this as necessary! |
| 109 return (contents_unique_id_ != details.entry_id) || details.is_reload; | 116 return (contents_unique_id_ != details.entry_id) || details.is_reload; |
| 110 } | 117 } |
| 111 | 118 |
| 112 } // namespace infobars | 119 } // namespace infobars |
| OLD | NEW |