OLD | NEW |
1 // Copyright (c) 2012 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_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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // Callback for the "addProfileShortcut" message, which is called when editing | 115 // Callback for the "addProfileShortcut" message, which is called when editing |
116 // an existing profile and the user clicks the "Add desktop shortcut" button. | 116 // an existing profile and the user clicks the "Add desktop shortcut" button. |
117 // Adds a desktop shortcut for the profile. | 117 // Adds a desktop shortcut for the profile. |
118 void AddProfileShortcut(const base::ListValue* args); | 118 void AddProfileShortcut(const base::ListValue* args); |
119 | 119 |
120 // Callback for the "removeProfileShortcut" message, which is called when | 120 // Callback for the "removeProfileShortcut" message, which is called when |
121 // editing an existing profile and the user clicks the "Remove desktop | 121 // editing an existing profile and the user clicks the "Remove desktop |
122 // shortcut" button. Removes the desktop shortcut for the profile. | 122 // shortcut" button. Removes the desktop shortcut for the profile. |
123 void RemoveProfileShortcut(const base::ListValue* args); | 123 void RemoveProfileShortcut(const base::ListValue* args); |
124 | 124 |
| 125 // Callback for the "refreshGAIAPicture" message, which is called when the |
| 126 // user pressed "Edit" for an existing profile. |
| 127 void RefreshGaiaPicture(const base::ListValue* args); |
| 128 |
125 // URL for the current profile's GAIA picture. | 129 // URL for the current profile's GAIA picture. |
126 std::string gaia_picture_url_; | 130 std::string gaia_picture_url_; |
127 | 131 |
128 // Used to observe the preference that allows creating managed users, which | 132 // Used to observe the preference that allows creating managed users, which |
129 // can be changed by policy. | 133 // can be changed by policy. |
130 PrefChangeRegistrar pref_change_registrar_; | 134 PrefChangeRegistrar pref_change_registrar_; |
131 | 135 |
132 // For generating weak pointers to itself for callbacks. | 136 // For generating weak pointers to itself for callbacks. |
133 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; | 137 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; |
134 | 138 |
135 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); | 139 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); |
136 }; | 140 }; |
137 | 141 |
138 } // namespace options | 142 } // namespace options |
139 | 143 |
140 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ | 144 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
OLD | NEW |