| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "chrome/browser/browser_signin.h" | 10 #include "chrome/browser/browser_signin.h" |
| 11 #include "chrome/browser/sync/profile_sync_service.h" | 11 #include "chrome/browser/sync/profile_sync_service.h" |
| 12 #include "chrome/browser/ui/webui/options/options_ui.h" | 12 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 13 #if defined(OS_CHROMEOS) | 13 #if defined(OS_CHROMEOS) |
| 14 #include "content/common/notification_registrar.h" | 14 #include "content/common/notification_registrar.h" |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 class OptionsManagedBannerHandler; | |
| 18 | |
| 19 // Chrome personal options page UI handler. | 17 // Chrome personal options page UI handler. |
| 20 class PersonalOptionsHandler : public OptionsPageUIHandler, | 18 class PersonalOptionsHandler : public OptionsPageUIHandler, |
| 21 public ProfileSyncServiceObserver, | 19 public ProfileSyncServiceObserver, |
| 22 public BrowserSignin::SigninDelegate { | 20 public BrowserSignin::SigninDelegate { |
| 23 public: | 21 public: |
| 24 PersonalOptionsHandler(); | 22 PersonalOptionsHandler(); |
| 25 virtual ~PersonalOptionsHandler(); | 23 virtual ~PersonalOptionsHandler(); |
| 26 | 24 |
| 27 // OptionsPageUIHandler implementation. | 25 // OptionsPageUIHandler implementation. |
| 28 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | 26 virtual void GetLocalizedValues(DictionaryValue* localized_strings); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 48 void ThemesReset(const ListValue* args); | 46 void ThemesReset(const ListValue* args); |
| 49 #if defined(TOOLKIT_GTK) | 47 #if defined(TOOLKIT_GTK) |
| 50 void ThemesSetGTK(const ListValue* args); | 48 void ThemesSetGTK(const ListValue* args); |
| 51 #endif | 49 #endif |
| 52 | 50 |
| 53 #if defined(OS_CHROMEOS) | 51 #if defined(OS_CHROMEOS) |
| 54 void LoadAccountPicture(const ListValue* args); | 52 void LoadAccountPicture(const ListValue* args); |
| 55 NotificationRegistrar registrar_; | 53 NotificationRegistrar registrar_; |
| 56 #endif | 54 #endif |
| 57 | 55 |
| 58 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; | |
| 59 | |
| 60 // True if the multiprofiles switch is enabled. | 56 // True if the multiprofiles switch is enabled. |
| 61 bool multiprofile_; | 57 bool multiprofile_; |
| 62 | 58 |
| 63 DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler); | 59 DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler); |
| 64 }; | 60 }; |
| 65 | 61 |
| 66 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ | 62 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ |
| OLD | NEW |