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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 } | 64 } |
65 | 65 |
66 MediaStreamInfoBarDelegate* InfoBarDelegate::AsMediaStreamInfoBarDelegate() { | 66 MediaStreamInfoBarDelegate* InfoBarDelegate::AsMediaStreamInfoBarDelegate() { |
67 return nullptr; | 67 return nullptr; |
68 } | 68 } |
69 | 69 |
70 NativeAppInfoBarDelegate* InfoBarDelegate::AsNativeAppInfoBarDelegate() { | 70 NativeAppInfoBarDelegate* InfoBarDelegate::AsNativeAppInfoBarDelegate() { |
71 return nullptr; | 71 return nullptr; |
72 } | 72 } |
73 | 73 |
| 74 PermissionInfobarDelegate* InfoBarDelegate::AsPermissionInfobarDelegate() { |
| 75 return nullptr; |
| 76 } |
| 77 |
74 PopupBlockedInfoBarDelegate* InfoBarDelegate::AsPopupBlockedInfoBarDelegate() { | 78 PopupBlockedInfoBarDelegate* InfoBarDelegate::AsPopupBlockedInfoBarDelegate() { |
75 return nullptr; | 79 return nullptr; |
76 } | 80 } |
77 | 81 |
78 RegisterProtocolHandlerInfoBarDelegate* | 82 RegisterProtocolHandlerInfoBarDelegate* |
79 InfoBarDelegate::AsRegisterProtocolHandlerInfoBarDelegate() { | 83 InfoBarDelegate::AsRegisterProtocolHandlerInfoBarDelegate() { |
80 return nullptr; | 84 return nullptr; |
81 } | 85 } |
82 | 86 |
83 ScreenCaptureInfoBarDelegate* | 87 ScreenCaptureInfoBarDelegate* |
(...skipping 23 matching lines...) Expand all Loading... |
107 } | 111 } |
108 | 112 |
109 bool InfoBarDelegate::ShouldExpireInternal( | 113 bool InfoBarDelegate::ShouldExpireInternal( |
110 const NavigationDetails& details) const { | 114 const NavigationDetails& details) const { |
111 // NOTE: If you change this, be sure to check and adjust the behavior of | 115 // NOTE: If you change this, be sure to check and adjust the behavior of |
112 // anyone who overrides this as necessary! | 116 // anyone who overrides this as necessary! |
113 return (contents_unique_id_ != details.entry_id) || details.is_reload; | 117 return (contents_unique_id_ != details.entry_id) || details.is_reload; |
114 } | 118 } |
115 | 119 |
116 } // namespace infobars | 120 } // namespace infobars |
OLD | NEW |