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

Side by Side Diff: chrome/browser/themes/theme_service.h

Issue 22677002: Notify ThemeService via callback when supervised user is ready. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
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/threading/non_thread_safe.h" 17 #include "base/threading/non_thread_safe.h"
17 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 18 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
18 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
19 #include "content/public/browser/notification_registrar.h" 20 #include "content/public/browser/notification_registrar.h"
20 #include "ui/base/theme_provider.h" 21 #include "ui/base/theme_provider.h"
21 22
22 class CustomThemeSupplier; 23 class CustomThemeSupplier;
23 class BrowserThemePack; 24 class BrowserThemePack;
24 class ThemeSyncableService; 25 class ThemeSyncableService;
25 class Profile; 26 class Profile;
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 241
241 scoped_refptr<CustomThemeSupplier> theme_supplier_; 242 scoped_refptr<CustomThemeSupplier> theme_supplier_;
242 243
243 // The number of infobars currently displayed. 244 // The number of infobars currently displayed.
244 int number_of_infobars_; 245 int number_of_infobars_;
245 246
246 content::NotificationRegistrar registrar_; 247 content::NotificationRegistrar registrar_;
247 248
248 scoped_ptr<ThemeSyncableService> theme_syncable_service_; 249 scoped_ptr<ThemeSyncableService> theme_syncable_service_;
249 250
251 base::WeakPtrFactory<ThemeService> weak_ptr_factory_;
252
250 DISALLOW_COPY_AND_ASSIGN(ThemeService); 253 DISALLOW_COPY_AND_ASSIGN(ThemeService);
251 }; 254 };
252 255
253 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ 256 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698