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

Side by Side Diff: chrome/browser/ui/webui/options/personal_options_handler.h

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright bumps Created 8 years, 9 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) 2011 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_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/sync/profile_sync_service.h" 10 #include "chrome/browser/sync/profile_sync_service.h"
11 #include "chrome/browser/ui/webui/options/options_ui.h" 11 #include "chrome/browser/ui/webui/options/options_ui.h"
12 #if defined(OS_CHROMEOS) 12 #if defined(OS_CHROMEOS)
13 #include "content/public/browser/notification_registrar.h" 13 #include "content/public/browser/notification_registrar.h"
14 #endif 14 #endif
15 15
16 // Chrome personal options page UI handler. 16 // Chrome personal options page UI handler.
17 class PersonalOptionsHandler : public OptionsPageUIHandler, 17 class PersonalOptionsHandler : public OptionsPageUIHandler,
18 public ProfileSyncServiceObserver { 18 public ProfileSyncServiceObserver {
19 public: 19 public:
20 PersonalOptionsHandler(); 20 PersonalOptionsHandler();
21 virtual ~PersonalOptionsHandler(); 21 virtual ~PersonalOptionsHandler();
22 22
23 // OptionsPageUIHandler implementation. 23 // OptionsPageUIHandler implementation.
24 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; 24 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
25 virtual void Initialize() OVERRIDE; 25 virtual void InitializeHandler() OVERRIDE;
26 26
27 // WebUIMessageHandler implementation. 27 // WebUIMessageHandler implementation.
28 virtual void RegisterMessages() OVERRIDE; 28 virtual void RegisterMessages() OVERRIDE;
29 29
30 // content::NotificationObserver implementation. 30 // content::NotificationObserver implementation.
31 virtual void Observe(int type, 31 virtual void Observe(int type,
32 const content::NotificationSource& source, 32 const content::NotificationSource& source,
33 const content::NotificationDetails& details) OVERRIDE; 33 const content::NotificationDetails& details) OVERRIDE;
34 34
35 // ProfileSyncServiceObserver implementation. 35 // ProfileSyncServiceObserver implementation.
(...skipping 25 matching lines...) Expand all
61 // |args| is not used. 61 // |args| is not used.
62 void CreateProfile(const ListValue* args); 62 void CreateProfile(const ListValue* args);
63 63
64 // True if the multiprofiles switch is enabled. 64 // True if the multiprofiles switch is enabled.
65 bool multiprofile_; 65 bool multiprofile_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler); 67 DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler);
68 }; 68 };
69 69
70 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ 70 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698