| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "components/infobars/core/infobar_delegate.h" | 15 #include "components/infobars/core/infobar_delegate.h" |
| 16 | 16 |
| 17 class ConfirmInfoBarDelegate; | 17 class ConfirmInfoBarDelegate; |
| 18 class GURL; | 18 class GURL; |
| 19 | 19 |
| 20 namespace content { | |
| 21 class WebContents; | |
| 22 } | |
| 23 | |
| 24 namespace infobars { | 20 namespace infobars { |
| 25 | 21 |
| 26 class InfoBar; | 22 class InfoBar; |
| 27 | 23 |
| 28 // Provides access to creating, removing and enumerating info bars | 24 // Provides access to creating, removing and enumerating info bars |
| 29 // attached to a tab. | 25 // attached to a tab. |
| 30 class InfoBarManager { | 26 class InfoBarManager { |
| 31 public: | 27 public: |
| 32 // Observer class for infobar events. | 28 // Observer class for infobar events. |
| 33 class Observer { | 29 class Observer { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 bool infobars_enabled_; | 124 bool infobars_enabled_; |
| 129 | 125 |
| 130 base::ObserverList<Observer, true> observer_list_; | 126 base::ObserverList<Observer, true> observer_list_; |
| 131 | 127 |
| 132 DISALLOW_COPY_AND_ASSIGN(InfoBarManager); | 128 DISALLOW_COPY_AND_ASSIGN(InfoBarManager); |
| 133 }; | 129 }; |
| 134 | 130 |
| 135 } // namespace infobars | 131 } // namespace infobars |
| 136 | 132 |
| 137 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_MANAGER_H_ | 133 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_MANAGER_H_ |
| OLD | NEW |