| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MANAGED_USER_IMPORT_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_IMPORT_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_IMPORT_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_IMPORT_HANDLER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/webui/options/options_ui.h" | 8 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // WebUIMessageHandler implementation. | 27 // WebUIMessageHandler implementation. |
| 28 virtual void RegisterMessages() OVERRIDE; | 28 virtual void RegisterMessages() OVERRIDE; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 // Callback for the "requestExistingManagedUsers" message. | 31 // Callback for the "requestExistingManagedUsers" message. |
| 32 // Sends an array of managed users to WebUI. Each entry is of the form: | 32 // Sends an array of managed users to WebUI. Each entry is of the form: |
| 33 // managedProfile = { | 33 // managedProfile = { |
| 34 // id: "Managed User ID", | 34 // id: "Managed User ID", |
| 35 // name: "Managed User Name", | 35 // name: "Managed User Name", |
| 36 // iconURL: "chrome://path/to/icon/image", | 36 // iconURL: "chrome://path/to/icon/image", |
| 37 // onCurrentDevice: true or false | 37 // onCurrentDevice: true or false, |
| 38 // needAvatar: true or false |
| 38 // } | 39 // } |
| 39 // The array holds all existing managed users attached to the | 40 // The array holds all existing managed users attached to the |
| 40 // custodian's profile who initiated the request except for | 41 // custodian's profile who initiated the request except for |
| 41 // those managed users that already exist on this machine. | 42 // those managed users that already exist on this machine. |
| 42 void RequestExistingManagedUsers(const base::ListValue* args); | 43 void RequestExistingManagedUsers(const base::ListValue* args); |
| 43 | 44 |
| 44 DISALLOW_COPY_AND_ASSIGN(ManagedUserImportHandler); | 45 DISALLOW_COPY_AND_ASSIGN(ManagedUserImportHandler); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace options | 48 } // namespace options |
| 48 | 49 |
| 49 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_IMPORT_HANDLER_H_ | 50 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_IMPORT_HANDLER_H_ |
| OLD | NEW |