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 #ifndef CHROME_BROWSER_INFOBARS_CONFIRM_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_INFOBARS_CONFIRM_INFOBAR_DELEGATE_H_ |
6 #define CHROME_BROWSER_INFOBARS_CONFIRM_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_INFOBARS_CONFIRM_INFOBAR_DELEGATE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "chrome/browser/infobars/infobar_delegate.h" | 10 #include "chrome/browser/infobars/infobar_delegate.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // this call something triggers the infobar to begin closing. | 60 // this call something triggers the infobar to begin closing. |
61 virtual bool LinkClicked(WindowOpenDisposition disposition); | 61 virtual bool LinkClicked(WindowOpenDisposition disposition); |
62 | 62 |
63 protected: | 63 protected: |
64 ConfirmInfoBarDelegate(); | 64 ConfirmInfoBarDelegate(); |
65 | 65 |
66 // Returns a confirm infobar that owns |delegate|. | 66 // Returns a confirm infobar that owns |delegate|. |
67 static scoped_ptr<InfoBar> CreateInfoBar( | 67 static scoped_ptr<InfoBar> CreateInfoBar( |
68 scoped_ptr<ConfirmInfoBarDelegate> delegate); | 68 scoped_ptr<ConfirmInfoBarDelegate> delegate); |
69 | 69 |
70 virtual bool ShouldExpireInternal( | 70 virtual bool ShouldExpireInternal(const NavigationDetails& details) const |
71 const content::LoadCommittedDetails& details) const OVERRIDE; | 71 OVERRIDE; |
72 | 72 |
73 private: | 73 private: |
74 // InfoBarDelegate: | 74 // InfoBarDelegate: |
75 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE; | 75 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE; |
76 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate() OVERRIDE; | 76 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate() OVERRIDE; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBarDelegate); | 78 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBarDelegate); |
79 }; | 79 }; |
80 | 80 |
81 #endif // CHROME_BROWSER_INFOBARS_CONFIRM_INFOBAR_DELEGATE_H_ | 81 #endif // CHROME_BROWSER_INFOBARS_CONFIRM_INFOBAR_DELEGATE_H_ |
OLD | NEW |