| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 std::unique_ptr<base::ListValue> GetAvailableIcons(); | 49 std::unique_ptr<base::ListValue> GetAvailableIcons(); |
| 50 | 50 |
| 51 // Callback for the "setProfileIconAndName" message. Sets the name and icon | 51 // Callback for the "setProfileIconAndName" message. Sets the name and icon |
| 52 // of a given profile. | 52 // of a given profile. |
| 53 // |args| is of the form: [ | 53 // |args| is of the form: [ |
| 54 // /*string*/ newProfileIconURL | 54 // /*string*/ newProfileIconURL |
| 55 // /*string*/ newProfileName, | 55 // /*string*/ newProfileName, |
| 56 // ] | 56 // ] |
| 57 void HandleSetProfileIconAndName(const base::ListValue* args); | 57 void HandleSetProfileIconAndName(const base::ListValue* args); |
| 58 | 58 |
| 59 // Callback for the "requestHasProfileShortcuts" message, which is called | 59 // Callback for the "requestProfileShortcutStatus" message, which is called |
| 60 // when editing an existing profile. Asks the profile shortcut manager whether | 60 // when editing an existing profile. Asks the profile shortcut manager whether |
| 61 // the profile has shortcuts and gets the result in |OnHasProfileShortcuts()|. | 61 // the profile has shortcuts and gets the result in |OnHasProfileShortcuts()|. |
| 62 void HandleRequestHasProfileShortcuts(const base::ListValue* args); | 62 void HandleRequestProfileShortcutStatus(const base::ListValue* args); |
| 63 | 63 |
| 64 // Callback invoked from the profile manager indicating whether the profile | 64 // Callback invoked from the profile manager indicating whether the profile |
| 65 // being edited has any desktop shortcuts. | 65 // being edited has any desktop shortcuts. |
| 66 void OnHasProfileShortcuts(const std::string& callback_id, | 66 void OnHasProfileShortcuts(const std::string& callback_id, |
| 67 bool has_shortcuts); | 67 bool has_shortcuts); |
| 68 | 68 |
| 69 // Callback for the "addProfileShortcut" message, which is called when editing | 69 // Callback for the "addProfileShortcut" message, which is called when editing |
| 70 // an existing profile and the user clicks the "Add desktop shortcut" button. | 70 // an existing profile and the user clicks the "Add desktop shortcut" button. |
| 71 // Adds a desktop shortcut for the profile. | 71 // Adds a desktop shortcut for the profile. |
| 72 void HandleAddProfileShortcut(const base::ListValue* args); | 72 void HandleAddProfileShortcut(const base::ListValue* args); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 87 | 87 |
| 88 // For generating weak pointers to itself for callbacks. | 88 // For generating weak pointers to itself for callbacks. |
| 89 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; | 89 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; |
| 90 | 90 |
| 91 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); | 91 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace settings | 94 } // namespace settings |
| 95 | 95 |
| 96 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_ | 96 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_ |
| OLD | NEW |