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 CHROME_BROWSER_FONT_FAMILY_CACHE_H_ | 5 #ifndef CHROME_BROWSER_FONT_FAMILY_CACHE_H_ |
6 #define CHROME_BROWSER_FONT_FAMILY_CACHE_H_ | 6 #define CHROME_BROWSER_FONT_FAMILY_CACHE_H_ |
7 | 7 |
8 #include "base/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/prefs/pref_change_registrar.h" | |
12 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
13 #include "base/supports_user_data.h" | 12 #include "base/supports_user_data.h" |
| 13 #include "components/prefs/pref_change_registrar.h" |
14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
15 #include "content/public/browser/notification_registrar.h" | 15 #include "content/public/browser/notification_registrar.h" |
16 #include "content/public/common/web_preferences.h" | 16 #include "content/public/common/web_preferences.h" |
17 | 17 |
18 class PrefService; | 18 class PrefService; |
19 class Profile; | 19 class Profile; |
20 | 20 |
21 FORWARD_DECLARE_TEST(FontFamilyCacheTest, Caching); | 21 FORWARD_DECLARE_TEST(FontFamilyCacheTest, Caching); |
22 | 22 |
23 // Caches font family preferences associated with a PrefService. This class | 23 // Caches font family preferences associated with a PrefService. This class |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // Reacts to profile changes. | 88 // Reacts to profile changes. |
89 PrefChangeRegistrar profile_pref_registrar_; | 89 PrefChangeRegistrar profile_pref_registrar_; |
90 | 90 |
91 // Listens for profile destruction. | 91 // Listens for profile destruction. |
92 content::NotificationRegistrar notification_registrar_; | 92 content::NotificationRegistrar notification_registrar_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(FontFamilyCache); | 94 DISALLOW_COPY_AND_ASSIGN(FontFamilyCache); |
95 }; | 95 }; |
96 | 96 |
97 #endif // CHROME_BROWSER_FONT_FAMILY_CACHE_H_ | 97 #endif // CHROME_BROWSER_FONT_FAMILY_CACHE_H_ |
OLD | NEW |