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/tab_contents/confirm_infobar_delegate.h" | 5 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" |
6 | 6 |
7 #include "content/public/browser/navigation_details.h" | 7 #include "content/public/browser/navigation_details.h" |
8 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
10 | 10 |
11 InfoBarDelegate::InfoBarAutomationType | 11 InfoBarDelegate::InfoBarAutomationType |
12 ConfirmInfoBarDelegate::GetInfoBarAutomationType() const { | 12 ConfirmInfoBarDelegate::GetInfoBarAutomationType() const { |
13 return CONFIRM_INFOBAR; | 13 return CONFIRM_INFOBAR; |
14 } | 14 } |
15 | 15 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 bool ConfirmInfoBarDelegate::ShouldExpireInternal( | 58 bool ConfirmInfoBarDelegate::ShouldExpireInternal( |
59 const content::LoadCommittedDetails& details) const { | 59 const content::LoadCommittedDetails& details) const { |
60 return !details.did_replace_entry && | 60 return !details.did_replace_entry && |
61 InfoBarDelegate::ShouldExpireInternal(details); | 61 InfoBarDelegate::ShouldExpireInternal(details); |
62 } | 62 } |
63 | 63 |
64 ConfirmInfoBarDelegate* ConfirmInfoBarDelegate::AsConfirmInfoBarDelegate() { | 64 ConfirmInfoBarDelegate* ConfirmInfoBarDelegate::AsConfirmInfoBarDelegate() { |
65 return this; | 65 return this; |
66 } | 66 } |
OLD | NEW |