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