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_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 Loading... |
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_ |
OLD | NEW |