Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: components/infobars/core/infobar_manager.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/history/core/browser/top_sites.h ('k') | components/invalidation/invalidation_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698