| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // conditions doesn't dismiss infobars added while that navigation was | 47 // conditions doesn't dismiss infobars added while that navigation was |
| 48 // already in process. We carve out an exception for reloads since we | 48 // already in process. We carve out an exception for reloads since we |
| 49 // want reloads to dismiss infobars, but they will have unchanged entry | 49 // want reloads to dismiss infobars, but they will have unchanged entry |
| 50 // IDs. | 50 // IDs. |
| 51 ((nav_entry_id_ != details.entry_id) || details.is_reload); | 51 ((nav_entry_id_ != details.entry_id) || details.is_reload); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void InfoBarDelegate::InfoBarDismissed() { | 54 void InfoBarDelegate::InfoBarDismissed() { |
| 55 } | 55 } |
| 56 | 56 |
| 57 AutoLoginInfoBarDelegate* InfoBarDelegate::AsAutoLoginInfoBarDelegate() { | |
| 58 return nullptr; | |
| 59 } | |
| 60 | |
| 61 ConfirmInfoBarDelegate* InfoBarDelegate::AsConfirmInfoBarDelegate() { | 57 ConfirmInfoBarDelegate* InfoBarDelegate::AsConfirmInfoBarDelegate() { |
| 62 return nullptr; | 58 return nullptr; |
| 63 } | 59 } |
| 64 | 60 |
| 65 InsecureContentInfoBarDelegate* | 61 InsecureContentInfoBarDelegate* |
| 66 InfoBarDelegate::AsInsecureContentInfoBarDelegate() { | 62 InfoBarDelegate::AsInsecureContentInfoBarDelegate() { |
| 67 return nullptr; | 63 return nullptr; |
| 68 } | 64 } |
| 69 | 65 |
| 70 MediaStreamInfoBarDelegate* InfoBarDelegate::AsMediaStreamInfoBarDelegate() { | 66 MediaStreamInfoBarDelegate* InfoBarDelegate::AsMediaStreamInfoBarDelegate() { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 100 |
| 105 translate::TranslateInfoBarDelegate* | 101 translate::TranslateInfoBarDelegate* |
| 106 InfoBarDelegate::AsTranslateInfoBarDelegate() { | 102 InfoBarDelegate::AsTranslateInfoBarDelegate() { |
| 107 return nullptr; | 103 return nullptr; |
| 108 } | 104 } |
| 109 | 105 |
| 110 InfoBarDelegate::InfoBarDelegate() : nav_entry_id_(0) { | 106 InfoBarDelegate::InfoBarDelegate() : nav_entry_id_(0) { |
| 111 } | 107 } |
| 112 | 108 |
| 113 } // namespace infobars | 109 } // namespace infobars |
| OLD | NEW |