OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/infobars/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 "chrome/browser/infobars/infobar.h" | 9 #include "components/infobars/core/infobar.h" |
10 #include "chrome/browser/infobars/infobar_manager.h" | 10 #include "components/infobars/core/infobar_manager.h" |
11 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
12 | 12 |
13 const int InfoBarDelegate::kNoIconID = 0; | 13 const int InfoBarDelegate::kNoIconID = 0; |
14 | 14 |
15 InfoBarDelegate::~InfoBarDelegate() { | 15 InfoBarDelegate::~InfoBarDelegate() { |
16 } | 16 } |
17 | 17 |
18 InfoBarDelegate::InfoBarAutomationType | 18 InfoBarDelegate::InfoBarAutomationType |
19 InfoBarDelegate::GetInfoBarAutomationType() const { | 19 InfoBarDelegate::GetInfoBarAutomationType() const { |
20 return UNKNOWN_INFOBAR; | 20 return UNKNOWN_INFOBAR; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 InfoBarDelegate::InfoBarDelegate() : contents_unique_id_(0) { | 99 InfoBarDelegate::InfoBarDelegate() : contents_unique_id_(0) { |
100 } | 100 } |
101 | 101 |
102 bool InfoBarDelegate::ShouldExpireInternal( | 102 bool InfoBarDelegate::ShouldExpireInternal( |
103 const NavigationDetails& details) const { | 103 const NavigationDetails& details) const { |
104 // NOTE: If you change this, be sure to check and adjust the behavior of | 104 // NOTE: If you change this, be sure to check and adjust the behavior of |
105 // anyone who overrides this as necessary! | 105 // anyone who overrides this as necessary! |
106 return (contents_unique_id_ != details.entry_id) || details.is_reload; | 106 return (contents_unique_id_ != details.entry_id) || details.is_reload; |
107 } | 107 } |
OLD | NEW |