| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 // Sends an object to WebUI of the form: | 66 // Sends an object to WebUI of the form: |
| 67 // profileNames = { | 67 // profileNames = { |
| 68 // "Profile Name 1": true, | 68 // "Profile Name 1": true, |
| 69 // "Profile Name 2": true, | 69 // "Profile Name 2": true, |
| 70 // ... | 70 // ... |
| 71 // }; | 71 // }; |
| 72 // This is used to detect duplicate profile names. | 72 // This is used to detect duplicate profile names. |
| 73 void SendExistingProfileNames(); | 73 void SendExistingProfileNames(); |
| 74 | 74 |
| 75 // Show disconnect managed profile dialog after generating domain and user |
| 76 // specific strings. |
| 77 void ShowDisconnectManagedProfileDialog(const base::ListValue* args); |
| 78 |
| 75 // Callback for the "setProfileIconAndName" message. Sets the name and icon | 79 // Callback for the "setProfileIconAndName" message. Sets the name and icon |
| 76 // of a given profile. | 80 // of a given profile. |
| 77 // |args| is of the form: [ | 81 // |args| is of the form: [ |
| 78 // /*string*/ profileFilePath, | 82 // /*string*/ profileFilePath, |
| 79 // /*string*/ newProfileIconURL | 83 // /*string*/ newProfileIconURL |
| 80 // /*string*/ newProfileName, | 84 // /*string*/ newProfileName, |
| 81 // ] | 85 // ] |
| 82 void SetProfileIconAndName(const base::ListValue* args); | 86 void SetProfileIconAndName(const base::ListValue* args); |
| 83 | 87 |
| 84 #if defined(ENABLE_SETTINGS_APP) | 88 #if defined(ENABLE_SETTINGS_APP) |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 139 |
| 136 // For generating weak pointers to itself for callbacks. | 140 // For generating weak pointers to itself for callbacks. |
| 137 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; | 141 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; |
| 138 | 142 |
| 139 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); | 143 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); |
| 140 }; | 144 }; |
| 141 | 145 |
| 142 } // namespace options | 146 } // namespace options |
| 143 | 147 |
| 144 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ | 148 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
| OLD | NEW |