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_MANAGE_PROFILE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/webui/options/options_ui.h" | 9 #include "chrome/browser/ui/webui/options/options_ui.h" |
10 | 10 |
11 // Chrome personal stuff profiles manage overlay UI handler. | 11 // Chrome personal stuff profiles manage overlay UI handler. |
12 class ManageProfileHandler : public OptionsPageUIHandler { | 12 class ManageProfileHandler : public OptionsPageUIHandler { |
13 public: | 13 public: |
14 ManageProfileHandler(); | 14 ManageProfileHandler(); |
15 virtual ~ManageProfileHandler(); | 15 virtual ~ManageProfileHandler(); |
16 | 16 |
17 // OptionsPageUIHandler: | 17 // OptionsPageUIHandler: |
18 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); | 18 virtual void GetLocalizedValues( |
19 virtual void Initialize(); | 19 base::DictionaryValue* localized_strings) OVERRIDE; |
| 20 virtual void Initialize() OVERRIDE; |
20 | 21 |
21 // WebUIMessageHandler: | 22 // WebUIMessageHandler: |
22 virtual void RegisterMessages(); | 23 virtual void RegisterMessages() OVERRIDE; |
23 | 24 |
24 // content::NotificationObserver: | 25 // content::NotificationObserver: |
25 virtual void Observe(int type, | 26 virtual void Observe(int type, |
26 const content::NotificationSource& source, | 27 const content::NotificationSource& source, |
27 const content::NotificationDetails& details); | 28 const content::NotificationDetails& details) OVERRIDE; |
28 | 29 |
29 private: | 30 private: |
30 // Callback for the "requestDefaultProfileIcons" message. | 31 // Callback for the "requestDefaultProfileIcons" message. |
31 // Sends the array of default profile icon URLs to WebUI. | 32 // Sends the array of default profile icon URLs to WebUI. |
32 // |args| is of the form: [ {string} iconURL ] | 33 // |args| is of the form: [ {string} iconURL ] |
33 void RequestDefaultProfileIcons(const base::ListValue* args); | 34 void RequestDefaultProfileIcons(const base::ListValue* args); |
34 | 35 |
35 // Sends an object to WebUI of the form: | 36 // Sends an object to WebUI of the form: |
36 // profileNames = { | 37 // profileNames = { |
37 // "Profile Name 1": true, | 38 // "Profile Name 1": true, |
(...skipping 24 matching lines...) Expand all Loading... |
62 // iconURL: "chrome://path/to/icon/image", | 63 // iconURL: "chrome://path/to/icon/image", |
63 // filePath: "/path/to/profile/data/on/disk" | 64 // filePath: "/path/to/profile/data/on/disk" |
64 // isCurrentProfile: false, | 65 // isCurrentProfile: false, |
65 // }; | 66 // }; |
66 void RequestProfileInfo(const base::ListValue* args); | 67 void RequestProfileInfo(const base::ListValue* args); |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); | 69 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); |
69 }; | 70 }; |
70 | 71 |
71 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ | 72 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
OLD | NEW |