| 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 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_MANAGER_H_ | 5 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_MANAGER_H_ |
| 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_MANAGER_H_ | 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_MANAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // directly once they've been added to this; instead, when we're done with an | 113 // directly once they've been added to this; instead, when we're done with an |
| 114 // infobar, we instruct it to delete itself and then orphan it. See | 114 // infobar, we instruct it to delete itself and then orphan it. See |
| 115 // RemoveInfoBarInternal(). | 115 // RemoveInfoBarInternal(). |
| 116 typedef std::vector<InfoBar*> InfoBars; | 116 typedef std::vector<InfoBar*> InfoBars; |
| 117 | 117 |
| 118 void RemoveInfoBarInternal(InfoBar* infobar, bool animate); | 118 void RemoveInfoBarInternal(InfoBar* infobar, bool animate); |
| 119 | 119 |
| 120 InfoBars infobars_; | 120 InfoBars infobars_; |
| 121 bool infobars_enabled_; | 121 bool infobars_enabled_; |
| 122 | 122 |
| 123 ObserverList<Observer, true> observer_list_; | 123 base::ObserverList<Observer, true> observer_list_; |
| 124 | 124 |
| 125 DISALLOW_COPY_AND_ASSIGN(InfoBarManager); | 125 DISALLOW_COPY_AND_ASSIGN(InfoBarManager); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace infobars | 128 } // namespace infobars |
| 129 | 129 |
| 130 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_MANAGER_H_ | 130 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_MANAGER_H_ |
| OLD | NEW |