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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // Callback for the "addProfileShortcut" message, which is called when editing | 113 // Callback for the "addProfileShortcut" message, which is called when editing |
114 // an existing profile and the user clicks the "Add desktop shortcut" button. | 114 // an existing profile and the user clicks the "Add desktop shortcut" button. |
115 // Adds a desktop shortcut for the profile. | 115 // Adds a desktop shortcut for the profile. |
116 void AddProfileShortcut(const base::ListValue* args); | 116 void AddProfileShortcut(const base::ListValue* args); |
117 | 117 |
118 // Callback for the "removeProfileShortcut" message, which is called when | 118 // Callback for the "removeProfileShortcut" message, which is called when |
119 // editing an existing profile and the user clicks the "Remove desktop | 119 // editing an existing profile and the user clicks the "Remove desktop |
120 // shortcut" button. Removes the desktop shortcut for the profile. | 120 // shortcut" button. Removes the desktop shortcut for the profile. |
121 void RemoveProfileShortcut(const base::ListValue* args); | 121 void RemoveProfileShortcut(const base::ListValue* args); |
122 | 122 |
| 123 // Callback for the "requestProfileInProgressDownloads" message. |
| 124 // Sends the number of in-progress downloads for the given profile. |
| 125 // |args| is of the form: [ {string} profileFilePath ] |
| 126 void RequestProfileInProgressDownloads(const base::ListValue* args); |
| 127 |
123 // URL for the current profile's GAIA picture. | 128 // URL for the current profile's GAIA picture. |
124 std::string gaia_picture_url_; | 129 std::string gaia_picture_url_; |
125 | 130 |
126 // Used to observe the preference that allows creating managed users, which | 131 // Used to observe the preference that allows creating managed users, which |
127 // can be changed by policy. | 132 // can be changed by policy. |
128 PrefChangeRegistrar pref_change_registrar_; | 133 PrefChangeRegistrar pref_change_registrar_; |
129 | 134 |
130 // For generating weak pointers to itself for callbacks. | 135 // For generating weak pointers to itself for callbacks. |
131 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; | 136 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; |
132 | 137 |
133 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); | 138 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); |
134 }; | 139 }; |
135 | 140 |
136 } // namespace options | 141 } // namespace options |
137 | 142 |
138 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ | 143 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
OLD | NEW |