OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_THEMES_THEME_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_THEMES_THEME_SERVICE_H_ |
6 #define CHROME_BROWSER_THEMES_THEME_SERVICE_H_ | 6 #define CHROME_BROWSER_THEMES_THEME_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/threading/non_thread_safe.h" | 18 #include "base/threading/non_thread_safe.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "chrome/common/features.h" | 20 #include "chrome/common/features.h" |
21 #include "components/keyed_service/core/keyed_service.h" | 21 #include "components/keyed_service/core/keyed_service.h" |
22 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
23 #include "content/public/browser/notification_registrar.h" | 23 #include "content/public/browser/notification_registrar.h" |
| 24 #include "extensions/features/features.h" |
24 #include "ui/base/theme_provider.h" | 25 #include "ui/base/theme_provider.h" |
25 | 26 |
26 class CustomThemeSupplier; | 27 class CustomThemeSupplier; |
27 class BrowserThemePack; | 28 class BrowserThemePack; |
28 class ThemeSyncableService; | 29 class ThemeSyncableService; |
29 class Profile; | 30 class Profile; |
30 | 31 |
31 namespace base { | 32 namespace base { |
32 class FilePath; | 33 class FilePath; |
33 } | 34 } |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 int number_of_infobars_; | 314 int number_of_infobars_; |
314 | 315 |
315 // A cache of already-computed values for COLOR_TOOLBAR_TOP_SEPARATOR, which | 316 // A cache of already-computed values for COLOR_TOOLBAR_TOP_SEPARATOR, which |
316 // can be expensive to compute. | 317 // can be expensive to compute. |
317 mutable SeparatorColorCache separator_color_cache_; | 318 mutable SeparatorColorCache separator_color_cache_; |
318 | 319 |
319 content::NotificationRegistrar registrar_; | 320 content::NotificationRegistrar registrar_; |
320 | 321 |
321 std::unique_ptr<ThemeSyncableService> theme_syncable_service_; | 322 std::unique_ptr<ThemeSyncableService> theme_syncable_service_; |
322 | 323 |
323 #if defined(ENABLE_EXTENSIONS) | 324 #if BUILDFLAG(ENABLE_EXTENSIONS) |
324 class ThemeObserver; | 325 class ThemeObserver; |
325 std::unique_ptr<ThemeObserver> theme_observer_; | 326 std::unique_ptr<ThemeObserver> theme_observer_; |
326 #endif | 327 #endif |
327 | 328 |
328 BrowserThemeProvider original_theme_provider_; | 329 BrowserThemeProvider original_theme_provider_; |
329 BrowserThemeProvider incognito_theme_provider_; | 330 BrowserThemeProvider incognito_theme_provider_; |
330 | 331 |
331 base::WeakPtrFactory<ThemeService> weak_ptr_factory_; | 332 base::WeakPtrFactory<ThemeService> weak_ptr_factory_; |
332 | 333 |
333 DISALLOW_COPY_AND_ASSIGN(ThemeService); | 334 DISALLOW_COPY_AND_ASSIGN(ThemeService); |
334 }; | 335 }; |
335 | 336 |
336 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ | 337 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ |
OLD | NEW |