#ifndef CHROME_BROWSER_UI_WEBUI_THEME_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_THEME_HANDLER_H_
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_ui_message_handler.h"
class Profile;
namespace content {
class WebUI;
}
class ThemeHandler : public content::WebUIMessageHandler,
public content::NotificationObserver {
public:
explicit ThemeHandler();
virtual ~ThemeHandler();
private:
virtual void RegisterMessages() OVERRIDE;
void InitializeCSSCaches();
virtual void Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
Profile* GetProfile() const;
content::NotificationRegistrar registrar_;
DISALLOW_COPY_AND_ASSIGN(ThemeHandler);
};
#endif