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

Side by Side Diff: components/dom_distiller/core/distilled_page_prefs.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_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_H_ 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_H_
6 #define COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_H_ 6 #define COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void AddObserver(Observer* obs); 58 void AddObserver(Observer* obs);
59 void RemoveObserver(Observer* obs); 59 void RemoveObserver(Observer* obs);
60 60
61 private: 61 private:
62 // Notifies all Observers of new font family. 62 // Notifies all Observers of new font family.
63 void NotifyOnChangeFontFamily(FontFamily font_family); 63 void NotifyOnChangeFontFamily(FontFamily font_family);
64 // Notifies all Observers of new theme. 64 // Notifies all Observers of new theme.
65 void NotifyOnChangeTheme(Theme theme); 65 void NotifyOnChangeTheme(Theme theme);
66 66
67 PrefService* pref_service_; 67 PrefService* pref_service_;
68 ObserverList<Observer> observers_; 68 base::ObserverList<Observer> observers_;
69 69
70 base::WeakPtrFactory<DistilledPagePrefs> weak_ptr_factory_; 70 base::WeakPtrFactory<DistilledPagePrefs> weak_ptr_factory_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(DistilledPagePrefs); 72 DISALLOW_COPY_AND_ASSIGN(DistilledPagePrefs);
73 }; 73 };
74 74
75 } // namespace dom_distiller 75 } // namespace dom_distiller
76 76
77 #endif // COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_H_ 77 #endif // COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698