| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/threading/non_thread_safe.h" | 17 #include "base/threading/non_thread_safe.h" |
| 18 #include "components/keyed_service/core/keyed_service.h" | 18 #include "components/keyed_service/core/keyed_service.h" |
| 19 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
| 20 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
| 21 #include "ui/base/theme_provider.h" | 21 #include "ui/base/theme_provider.h" |
| 22 | 22 |
| 23 #if !defined(ENABLE_THEMES) |
| 24 #error Themes should be enabled |
| 25 #endif |
| 26 |
| 23 class CustomThemeSupplier; | 27 class CustomThemeSupplier; |
| 24 class BrowserThemePack; | 28 class BrowserThemePack; |
| 25 class ThemeSyncableService; | 29 class ThemeSyncableService; |
| 26 class Profile; | 30 class Profile; |
| 27 | 31 |
| 28 namespace base { | 32 namespace base { |
| 29 class FilePath; | 33 class FilePath; |
| 30 } | 34 } |
| 31 | 35 |
| 32 namespace color_utils { | 36 namespace color_utils { |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 content::NotificationRegistrar registrar_; | 251 content::NotificationRegistrar registrar_; |
| 248 | 252 |
| 249 scoped_ptr<ThemeSyncableService> theme_syncable_service_; | 253 scoped_ptr<ThemeSyncableService> theme_syncable_service_; |
| 250 | 254 |
| 251 base::WeakPtrFactory<ThemeService> weak_ptr_factory_; | 255 base::WeakPtrFactory<ThemeService> weak_ptr_factory_; |
| 252 | 256 |
| 253 DISALLOW_COPY_AND_ASSIGN(ThemeService); | 257 DISALLOW_COPY_AND_ASSIGN(ThemeService); |
| 254 }; | 258 }; |
| 255 | 259 |
| 256 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ | 260 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ |
| OLD | NEW |