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

Side by Side Diff: chrome/browser/ui/webui/theme_handler.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_UI_WEBUI_THEME_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_THEME_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_THEME_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_THEME_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/notification_observer.h" 9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h" 10 #include "content/public/browser/notification_registrar.h"
11 #include "content/public/browser/web_ui_message_handler.h" 11 #include "content/public/browser/web_ui_message_handler.h"
12 12
13 class Profile; 13 class Profile;
14 14
15 namespace content {
16 class WebUI;
17 }
18
19 // A class to keep the ThemeSource up to date when theme changes. 15 // A class to keep the ThemeSource up to date when theme changes.
20 class ThemeHandler : public content::WebUIMessageHandler, 16 class ThemeHandler : public content::WebUIMessageHandler,
21 public content::NotificationObserver { 17 public content::NotificationObserver {
22 public: 18 public:
23 explicit ThemeHandler(); 19 explicit ThemeHandler();
24 ~ThemeHandler() override; 20 ~ThemeHandler() override;
25 21
26 private: 22 private:
27 // content::WebUIMessageHandler implementation. 23 // content::WebUIMessageHandler implementation.
28 void RegisterMessages() override; 24 void RegisterMessages() override;
29 25
30 // Re/set the CSS caches. 26 // Re/set the CSS caches.
31 void InitializeCSSCaches(); 27 void InitializeCSSCaches();
32 28
33 // content::NotificationObserver implementation. 29 // content::NotificationObserver implementation.
34 void Observe(int type, 30 void Observe(int type,
35 const content::NotificationSource& source, 31 const content::NotificationSource& source,
36 const content::NotificationDetails& details) override; 32 const content::NotificationDetails& details) override;
37 33
38 Profile* GetProfile() const; 34 Profile* GetProfile() const;
39 35
40 content::NotificationRegistrar registrar_; 36 content::NotificationRegistrar registrar_;
41 37
42 DISALLOW_COPY_AND_ASSIGN(ThemeHandler); 38 DISALLOW_COPY_AND_ASSIGN(ThemeHandler);
43 }; 39 };
44 40
45 #endif // CHROME_BROWSER_UI_WEBUI_THEME_HANDLER_H_ 41 #endif // CHROME_BROWSER_UI_WEBUI_THEME_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/user_manager_screen_handler.h ('k') | chrome/browser/ui/webui/theme_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698