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

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

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 #ifdef __OBJC__ 47 #ifdef __OBJC__
48 @class NSString; 48 @class NSString;
49 // Sent whenever the browser theme changes. Object => NSValue wrapping the 49 // Sent whenever the browser theme changes. Object => NSValue wrapping the
50 // ThemeService that changed. 50 // ThemeService that changed.
51 extern "C" NSString* const kBrowserThemeDidChangeNotification; 51 extern "C" NSString* const kBrowserThemeDidChangeNotification;
52 #endif // __OBJC__ 52 #endif // __OBJC__
53 53
54 class ThemeService : public base::NonThreadSafe, 54 class ThemeService : public base::NonThreadSafe,
55 public content::NotificationObserver, 55 public content::NotificationObserver,
56 public ProfileKeyedService, 56 public BrowserContextKeyedService,
57 public ui::ThemeProvider { 57 public ui::ThemeProvider {
58 public: 58 public:
59 // Public constants used in ThemeService and its subclasses: 59 // Public constants used in ThemeService and its subclasses:
60 static const char* kDefaultThemeID; 60 static const char* kDefaultThemeID;
61 61
62 ThemeService(); 62 ThemeService();
63 virtual ~ThemeService(); 63 virtual ~ThemeService();
64 64
65 virtual void Init(Profile* profile); 65 virtual void Init(Profile* profile);
66 66
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 int number_of_infobars_; 218 int number_of_infobars_;
219 219
220 content::NotificationRegistrar registrar_; 220 content::NotificationRegistrar registrar_;
221 221
222 scoped_ptr<ThemeSyncableService> theme_syncable_service_; 222 scoped_ptr<ThemeSyncableService> theme_syncable_service_;
223 223
224 DISALLOW_COPY_AND_ASSIGN(ThemeService); 224 DISALLOW_COPY_AND_ASSIGN(ThemeService);
225 }; 225 };
226 226
227 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ 227 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698